Forums

Reset button activating all required fields alerts

juliogarcia 11 Nov, 2016
Hi, I have added a Reset Button to a form.
When I click on it the fields are reset, but all the *required fields alerts are activated. Is there any way to avoid this?

Thanks,
Julio.
GreyHead 12 Nov, 2016
Hi Julio,

Please post a link to the form so I can take a quick look.

Bob
GreyHead 12 Nov, 2016
1 Likes
Hi Julio,

Hmmm I haven't seen this reported before but I get the same result when I test both with a Reset button and with an ordinary button using JavaScript to do the reset. There ought to be a way to block the validation but I can't see what that is :-(

Max may be able to help with this.

Bob
juliogarcia 14 Nov, 2016
Hi Bob, Sorry for the delay to answer back.
Do you still need that I post a link?
How do I get Max to check this?

Thanks,
Julio.
GreyHead 14 Nov, 2016
1 Likes
Hi Julio,

Hopefully he'll read the posts - or you can nudge him using the Contact Us menu and including a link to this thread.

Bob
juliogarcia 22 Nov, 2016
Hi Bob, hope you are doing fine.
I did contact support by the form in the website and received the confirmation, but haven't had any response yet...
I have not found the solution yet...

Is there anything else you think that I should try?

Thanks.
Max_admin 22 Nov, 2016
Answer
1 Likes
Hi,

An easy solution would be to use a "Link" and format it like a button, this would reload the page though.

If you give the link the class "btn" then it will look like a button.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
juliogarcia 29 Nov, 2016
Thank you Max.

I created a custom code using:

Advanced>Custom

And this is the code that I used to create the button:


<p class="btn btn-default form-control A"> 
     <a href="index.php?option=com_chronoforms5&chronoform=contacto">
          Limpiar 
     </a>
</p>


That solved my problem, thank you very much!
This topic is locked and no more replies can be posted.