Page 1 of 1

Reset disable field in the form

Posted: Tue Mar 29, 2022 10:18 pm
by petejos
Hi Pablo,

I created a form with some fields disabled before the user complete the field before it. For example, once the user completed the first name field, then the last name field will be enabled. But when I press the Reset button in the form, it clears off all the data in those fields but does not disable the last name field. Is there something I miss? How should I make sure the field are disable after I press the reset button? Please provide some guidance. Thanks.

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 5:17 am
by Joe_120
In the first editbox Properties > Events > Add > onfocus > enable > yourSecondEditbox id

When the first edit box has an entry it will enable the second editbox. The reset button will do what it says and return a blank form, so don't use it.

Joe

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 6:07 am
by Pablo
Without seeing what you have done, it will be difficult to tell you exactly what to do.

To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 6:45 am
by petejos
Joe_120 wrote: Wed Mar 30, 2022 5:17 am In the first editbox Properties > Events > Add > onfocus > enable > yourSecondEditbox id

When the first edit box has an entry it will enable the second editbox. The reset button will do what it says and return a blank form, so don't use it.

Joe
Thanks Joe. Let me try that out.

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 7:51 am
by petejos
Joe_120 wrote: Wed Mar 30, 2022 5:17 am In the first editbox Properties > Events > Add > onfocus > enable > yourSecondEditbox id

When the first edit box has an entry it will enable the second editbox. The reset button will do what it says and return a blank form, so don't use it.

Joe
Hey Joe, there is no Enable when I set the add the onfocus Event

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 7:58 am
by petejos
Pablo wrote: Wed Mar 30, 2022 6:07 am Without seeing what you have done, it will be difficult to tell you exactly what to do.

To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
https://www.goec.com.au/baptism_form.wbs

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 8:55 am
by Pablo
I cannot load your project because it uses one or more extensions which I do not have.

Please read this:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Also, the project was created with version 14, which is no longer supported.

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 9:04 am
by petejos
Pablo wrote: Wed Mar 30, 2022 8:55 am I cannot load your project because it uses one or more extensions which I do not have.

Please read this:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Also, the project was created with version 14, which is no longer supported.
Please check again Pablo. Thanks.

https://www.goec.com.au/baptism_form.wbs

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 9:19 am
by Pablo
You will need to add the following events to the reset button:

Image

Re: Reset disable field in the form

Posted: Wed Mar 30, 2022 12:13 pm
by Joe_120

Hey Joe, there is no Enable when I set the add the onfocus Event
Ok try this. Right click the "First Name" editbox > Object html > click Inside tag > enter

Code: Select all

" onfocus="document.getElementById('LastName').disabled=false;return false;" 
Joe