Is is possible to wrap text from the answers of a form's multipe choice question when embedding ??

razazaidi
Member

We're embedding a form as a quiz on our site...Each question is a multiple choice question and some have relatively long text..the text is reaching the end of the line but not wrapping:

 

https://www.screencast.com/t/sl8d5G8e

 

since this is an embedded form, we have no control...is there a way to make that text wrap?

 

thanks in advance!

0 Upvotes
3 Replies 3
anders_grove
Contributor | Diamond Partner

You can add a CSS class to your embeded form by modyfing it's properties:

 

 

<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
	portalId: 'xxxxxx',
	formId: 'xxxxxxxxx-xxxx-xxxx-xxx-xxxxxxxxx',
	css: '',
	cssClass: 'your-class-name'
  });
</script>

 

razazaidi
Member

Thanks...I'll give it a try!

0 Upvotes
razazaidi
Member

This kinda worked...some browsers wrap the text but for some it stays the same...has anybody experimented with doing more complex IF statements by browser??