Page 1 of 1

CGBetterForms - select - option

Posted: Fri Feb 26, 2021 7:58 am
by starlink
Hi,
I am using CGBetterForms ver.1.10.4. How do I create an option list for the select field from the main menu (or part of it?). I guess Pre-render Logic should be used.
Thank you

Re: CGBetterForms - select - option

Posted: Fri Feb 26, 2021 3:50 pm
by DIGI3
I'm not 100% sure what you want, I assume by 'main menu' you mean your site's frontend navigation? If that's the case, you could probably make a Navigator template to produce the options, then call it in your form template. You might need to use {cms_module module='Navigator' ...} rather than {Navigator ...} but I haven't tested it.

Another method would be to insert the options via javascript. You would likely need to adjust your form validations to compensate for this.

Re: CGBetterForms - select - option

Posted: Fri Feb 26, 2021 4:22 pm
by starlink
Hi DIGI3,
yes I mean frontend navigation. {cms_module module='Navigator' ...} works.

Thank you very much :)