CF8 - 8.0.17 - Reset Button

rbock 17 Nov, 2023
Hello Max... Reset button doesn't work... Simply no function!
mari4anna87433 15 Mar, 2024
Hi, did you solve the problem with the reset button? it doesn't work for me...
rbock 15 Mar, 2024
Button + HTML Attributes: onclick=document.getelementbyid('NAME').value='';
rbock 16 Mar, 2024
Were you able to solve your problem?
Max_admin 16 Mar, 2024
Answer
The reset button does work as intended, clicking the button will clear the fields to their original state "on form load", so if your field was empty on page load then the reset will empty the field, otherwise you need a "clear" button which can be setup using some custom javascript code as you suggested
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mari4anna87433 18 Mar, 2024
I haven't solved it and I'm not very clear on how the reset button works in chronoforms...
piranhapete 06 Apr, 2024
I tried the above suggestion - Button + HTML Attributes: onclick=document.getelementbyid('NAME').value=''; That doesn't seem to work.
Max_admin 06 Apr, 2024
are you trying to clear fields ? if yes then you need to loop over fields
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
piranhapete 06 Apr, 2024
I'm not sure what you mean by Loop Over Fields.
Max_admin 07 Apr, 2024
a javascript loop over all form fields, this requires some custom code, and the code depends on the fields types
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger