Reset disable field in the form

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
petejos
 
 
Posts: 155
Joined: Wed Aug 22, 2012 11:43 am

Reset disable field in the form

Post 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.
Joe_120
 
 
Posts: 30
Joined: Fri May 21, 2021 3:10 pm
Location: Cornwall

Re: Reset disable field in the form

Post 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
If it wasn't for bad luck, I'd have no luck at all.
User avatar
Pablo
 
Posts: 22476
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reset disable field in the form

Post 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
petejos
 
 
Posts: 155
Joined: Wed Aug 22, 2012 11:43 am

Re: Reset disable field in the form

Post 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.
petejos
 
 
Posts: 155
Joined: Wed Aug 22, 2012 11:43 am

Re: Reset disable field in the form

Post 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
petejos
 
 
Posts: 155
Joined: Wed Aug 22, 2012 11:43 am

Re: Reset disable field in the form

Post 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
User avatar
Pablo
 
Posts: 22476
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reset disable field in the form

Post 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.
petejos
 
 
Posts: 155
Joined: Wed Aug 22, 2012 11:43 am

Re: Reset disable field in the form

Post 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
User avatar
Pablo
 
Posts: 22476
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reset disable field in the form

Post by Pablo »

You will need to add the following events to the reset button:

Image
Joe_120
 
 
Posts: 30
Joined: Fri May 21, 2021 3:10 pm
Location: Cornwall

Re: Reset disable field in the form

Post 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
If it wasn't for bad luck, I'd have no luck at all.
Post Reply