Hi,
I need to put some conditional code on the form dependent on the values loaded to the form fields from the database table.
If two email addresses match (taken from two database tables) I want to enable Submit button of one kind. If the addresses are different Submit action would be different.
I wrote the JS code comparing the fields, I have two buttons (one for each action) made with Custom Elements and I want to switch one off with JS setting "display:none" style.
Everything is ready, but I could not call the switching JS function in the right moment.
The form is loaded with Show HTML action. If I put "Load JS" with the function call it is ignored.
If the function call is before "Show HTML" the form is not loaded so fields are empty.
There are many smart peaple reading this forum...
Maybe someone did "submit" button switchover before...
Regards
Henryk
I need to put some conditional code on the form dependent on the values loaded to the form fields from the database table.
If two email addresses match (taken from two database tables) I want to enable Submit button of one kind. If the addresses are different Submit action would be different.
I wrote the JS code comparing the fields, I have two buttons (one for each action) made with Custom Elements and I want to switch one off with JS setting "display:none" style.
Everything is ready, but I could not call the switching JS function in the right moment.
The form is loaded with Show HTML action. If I put "Load JS" with the function call it is ignored.
If the function call is before "Show HTML" the form is not loaded so fields are empty.
There are many smart peaple reading this forum...
Maybe someone did "submit" button switchover before...
Regards
Henryk