ESPTemplateProcessor icon indicating copy to clipboard operation
ESPTemplateProcessor copied to clipboard

How to set status of Radio button and Checkbox and Option box with templateprocessor

Open RobertHolscher opened this issue 6 years ago • 1 comments

Hi , I am using the template processor and this works for strings very well but how do you manage status of radio buttons, checkboxes and optionboxes?

It does not seem to have reliable working Trying to substitute the key by "checked"or by "" when not selected but this does not work and will break the html code from processing to the browser

RobertHolscher avatar May 01 '19 16:05 RobertHolscher

You'll have to make sure the HTML you're generating is valid after template processing.

In my application I opted to use this form generator library rather than managing the HTML directly. My html template included the form configuration and I passed in the initialization data object with ESPTemplateProcessor.

winder avatar May 01 '19 18:05 winder