Follow

multiple="true": Allow Multiple Answers

 

You can allow contributors to submit more than one answer in the following CML fields by using the attribute multiple="true":

  • cml:text
  • cml:textarea (when in a cml:group) 
  • cml:select (when in a cml:group)

 

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, use the attributes multiple="true" and name="" for either cml:textarea or cml:select . The attributes will need to be included within the cml:group field (see examples 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_2019-01-11_at_2.40.45_PM.png

Fig 3. CML for cml:textarea

 

Screen_Shot_2019-01-11_at_2.34.38_PM.png

Fig 4. CML for cml:select

 

select.gif

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

Keyboard Shortcuts:
First instance: To select the "+" button, select the text box and press "Tab" once and "Return":

Screen_Shot_2020-08-21_at_10.26.45_AM.png


Other instances: To select the "+" button, select the text box and press "Tab" twice and "Return":

Screen_Shot_2020-08-21_at_10.26.56_AM.png

To delete a text box press "Tab" once and "Return":

Screen_Shot_2020-08-21_at_10.27.06_AM.png

Was this article helpful?
5 out of 7 found this helpful


Have more questions? Submit a request
Powered by Zendesk