Make fields on Modal Widget mandatory

Dazler
Mega Sage

Hi,

I have created a Widget modal that pops up with a form and it is working.  What I am trying to do is make the fields mandatory so that before they hit the Save button the user will have filled out all the appropriate fields.  I have added the required tag in the HTML, but that doesn't stop them from saving.

find_real_file.png

 

I want to make the Save button disabled until all the fields have been completed.

I am unsure how to include that in my Client Controller script.  This is what I have for my script.

find_real_file.png

 

Any help would be appreciated.

3 REPLIES 3

Mahesh23
Mega Sage

Hi,

Please refer below article might be helpful to you

https://stackoverflow.com/questions/32062051/how-to-make-submit-button-disabled

 

Please mark my response as correct answer or helpful if applicable 

I am not using a form action in this.  It is just HTML with input fields and then on click of Save, the field values are passed to the ticket. 

Hi, Convert it to form and try because it is simple to validate form.