ESPTemplateProcessor
ESPTemplateProcessor copied to clipboard
How to set status of Radio button and Checkbox and Option box with templateprocessor
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
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.