onFormRender doesn't fire after social sign on is rendered | Community
Skip to main content
February 18, 2016
Solved

onFormRender doesn't fire after social sign on is rendered

  • February 18, 2016
  • 1 reply
  • 2055 views

I'm currently using the forms2.0 javascript api to render forms on my client's website. They want to add the social signon feature to their forms, but the default styling is prohibitively ugly, and we want to change where the buttons are located in the form as well. I'm currently using the onFormRender callback to allow adding CSS classes so we can spruce up the forms and rearrange stuff client side if need be, however the onFormRender fires much earlier than the html for the social share buttons are actually rendered, leaving me out to dry. Is there some specific call back for the social share icons? Or some way I can at least change where the buttons are rendered in the form so I can just worry about styling the thing?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Get back to you later -- I'm back-to-back all day -- but you can see them all fire in the console.

1 reply

SanfordWhiteman
New Participant
February 18, 2016

The CF widget has its own event model, though I've found it quite easy to style without adding classes. If you need to rearrange its inner DOM of course you'd need to hook an event.

February 18, 2016

Thanks, do you know where I can find documentation on those events?

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 18, 2016

Get back to you later -- I'm back-to-back all day -- but you can see them all fire in the console.