I have required fields in a table, when generating the code using the default settings (without custom page template) the Add/edit pages will show the fields as
[Label * input field ]and when clicking Submit it will run client-side required field validation.
but when I use a custom template for the same pages and use {{{field}}}
it will generate the label and the input field but without * and without adding the required fields validation
I need to have the same functionality with custom template am I missing something?
Custom Template is rearrangement of existing HTML fragments in the page, all other code is still the same.
The HTML of the field and the JavaScript of the page will not be removed. In Add or Edit page, {{{field}}} means field caption + field value. Maybe the field caption does not includes the “*”, you may add your own, e.g.
{{{caption field}}}* {{{value field}}}
But the JavaScript should not be changed, you may press F12 in your browser and go to the Console panel to check if there are any JavaScript errors.