Forum
How to have a list box in the CMS
Hi,
I would like to create a list box in Perch, in order to be able to select predefined lines of text from a .html template that are to be generated in a website as HTML code.
I found this:
https://docs.grabaperch.com/docs/templates/attributes/type/select/
but as they are comma separated values, I cannot use a comma.
Is there any way around this situation?
Thank you
You could create a multiple item region to place the various lines of text in and use a dataselect instead?
https://docs.grabaperch.com/docs/templates/attributes/type/dataselect/
It would be great to be able to 'escape' commas in select and radio fieldtypes, but unfortunately it's not possible as yet. It would be a useful feature, I have had need of it in the past.
You could use individual checkboxes, as they have a value field which will take commas I believe:
However, this would allow the user to select more than one line of text which may not be what you intend.
I would do this:
Hi Phillip,
You have helped me solve a problem in a very simple way, thank you.