Add control to modal
Add control to modal
weskey
Posts: 12Questions: 5Answers: 0
I'd like to add a checkbox inside the create modal in the footer with the submit button. Id like to use the value of the checkbox to alter the behaviour of the submit button.
Anyone point me in the right direction?
This discussion has been closed.
Answers
Hi @weskey ,
You could do something like this here, then check the value in the Editor events.
Hope that helps,
Cheers,
Colin
Hi Colin
Thanks for your response. What I was after ideally was a checkbox control in the modal footer next to the create button. Any idea how I can add the control there?
Thanks
To do exactly what you want you'd need to listen for the
open
event and remove the Button Editor has added for the submit, replacing it with your own checkbox and button (which in turn could callsubmit()
or any other method(s) you need).Alternatively, a simpler option would be to have two different submit buttons, which is possible through the
buttons()
method orform-options
object (during initialisation -formOptions.main
).Allan