Hi,we are creating a simple todo module with online inline-edit and inline-add options only… one of the fields is a tinyint “completed” using checkbox, another field is the date_completed field which is R/O and will be set when the completed field is checked/unchecked.in the list startup script code, we have:
Inspect “x_compl” checkbox:<input type=“checkbox” class=“form-check-input ew-custom-option” data-table=“todolist” data-field=“x_compl” name=“x1_compl_392332” id=“x1_compl_392332” value=“1” data-index=“0”>when viewing debugger, it gets initialized on “startup”, but when we click the checkbox no event is fired… I’m suspecting this needs to be handled differently due to being a grid?, the id is different on each load of the page.thanks
the form is a straight inline-edit and inline-add, when i checked the generated code there is no todolistedit.php file as well.not sure where the issue sits…
If both fields are checkboxes, don’t use different events, the behavior may be different for different browsers, you better use “click” only.
Client side events are for all pages, no need to be generated for different pages. Inline-Edit is in the List page, not in the Edit page. However, since the controls for Inline-Edit are not created yet on page load, it appears that your events are not added automatically even using client side events.
You may try to add event handlers by Startup Script of the List page, e.g.