Follow

multiple="true": Allow Multiple Answers

 

You can allow contributors to submit more than one answer in a cml:text, cml:textarea or cml:select field by using the attribute multiple="true".

 

cml:text

For cml:text, the attribute multiple="true" adds an ‘+’ icon next to the text box, that allows contributors to submit as many answers as they need.

Screen_Shot_2017-10-30_at_12.55.50_PM.png

Fig 1. CML for cml:text

 

text_field.gif

Fig 2. Preview for cml:text

 

cml:textarea and cml:select

Unlike cml:text, to use the attribute multiple="true" for either cml:textarea or cml:select it will need to be included within the cml:group field (see example below). This attribute adds an ‘Add Another” icon on the top right hand corner of the box, and allows contributors to submit as many answers as they need.

Screen_Shot_2017-10-30_at_1.13.43_PM.png

Fig 3. CML for cml:textarea

 

Screen_Shot_2017-10-30_at_1.13.49_PM.png

Fig 4. CML for cml:select

 

select.gif

Fig 5. Preview for cml:textarea and cml:select


Was this article helpful?
0 out of 0 found this helpful


Have more questions? Submit a request
Powered by Zendesk