• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: hidden fields being wrongly reset to default value

hidden fields being wrongly reset to default value 14 years 10 months ago #7751

  • james6
  • james6's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi Folks,

I have a form which includes a couple of hidden fields with default values that are updated via jscript depending on the selections in a couple of drop down lists. I also have a captcha at the bottom of the form.

Setting the hidden fields is working ok - no worries, however if the captcha is wrong when the form is submitted then the hidden fields all revert to their ORIGINAL default values but the drop down lists retain their SELECTED values.

So after the form refreshes because of the incorrect captcha, the user still sees their selected field values in all the dropdowns - they have been remembered - but the hidden values are now set to default and out of sych with the dropdowns that were used to set them and the form can be submitted with all the hidden values set to their defaults unknown to the user.

When the form is reloaded due to incorrect captcha, the hidden fields in the form should retain their values (as the other fields do). Can anyone please help me do this...

I'm using RSForms pro just downloaded this week and Joomla 1.5.7

Thanks
The administrator has disabled public write access.

Re:hidden fields being wrongly reset to default value 14 years 3 months ago #9579

  • lcna
  • lcna's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Did you find a solution to this problem?

The same thing is happening to my form on all of the PayPal Multiple Products fields!
The administrator has disabled public write access.

Re:hidden fields being wrongly reset to default value 14 years 3 months ago #9590

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 733
  • Thank you received: 60
Hello,

The hidden field's value shouldn't change even if you reload the page because of the Capcha. You can try to call the function again when you click the submit button. Just add this line in the "Additional attributes" of your submit button:

onclick="your_function();"
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!