AdamKeever1
6 years agoQrew Commander
Re: Creating dynamic Surveys
Here is another option similar to Everett's suggestion:
Add an image on load formula rich text field to force the radio buttons in horizontal orientation and hide the field on your form (this suggestion and code came from Chayce Duncan of Quandry Consulting Group). Add multiple choice fields as Everett suggested. Add a text form element for descriptions (also could be used for your questions if you want a larger font for your questions.
Here is the result:
Here is the image on load code for the formula rich text field:
Here is one way to hide the field (in this example it is titled [HORIZ_IOL]) on a form:
Here is how to adjust text size and add bold type in a form text element (added in this example just after the section heading element):
------------------------------
Adam Keever
------------------------------
Add an image on load formula rich text field to force the radio buttons in horizontal orientation and hide the field on your form (this suggestion and code came from Chayce Duncan of Quandry Consulting Group). Add multiple choice fields as Everett suggested. Add a text form element for descriptions (also could be used for your questions if you want a larger font for your questions.
Here is the result:
Here is the image on load code for the formula rich text field:
"<img src=\"/i/clear2x2.gif\" " &
"onload=\"javascript:if(typeof QBU=='undefined'){QBU={};setTimeout(function(){" &
"$('.RadioButtons br').remove();" &
"$('.RadioButtons label.NoneOfTheAbove').remove();" &
"$('.RadioButtons label').css('margin-right', '25px')" &
"}, 500)}\">"
Here is how to adjust text size and add bold type in a form text element (added in this example just after the section heading element):
Since the HTML for underline type is not allowed in the text element, a line break, </br>, and many underscores were used to create the appearance of underlined text.
If you have the need to calculate an overall or average score, you would need to add a formula numeric field for each likert checkbox field and us the ToNumber function in order to return the number value of the likert scale (using the likert field name from the above form for example: ToNumber([Likert_Scale1]). Then you would need an additional formula numeric to sum or average all of the likert formula numeric fields.
If you have the need to calculate an overall or average score, you would need to add a formula numeric field for each likert checkbox field and us the ToNumber function in order to return the number value of the likert scale (using the likert field name from the above form for example: ToNumber([Likert_Scale1]). Then you would need an additional formula numeric to sum or average all of the likert formula numeric fields.
***The above works best for desktop. If you will be using for mobile, the IOL will not work and the checkbox radio buttons will be vertical. Making all of the Likert_Scale fileds required removes the 'None of the above' option and only shows the 1 through 7 options in this example.
------------------------------
Adam Keever
------------------------------