• 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: PHP onFormProcess

PHP onFormProcess 7 years 11 months ago #36896

  • kyle04
  • kyle04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi Guys,

I have a dropdown field DropDownField
I also have a hidden field HiddenField

On form process i need to set the hidden field value based on the dropdownfield value. How do i do this?
The administrator has disabled public write access.

PHP onFormProcess 7 years 11 months ago #36902

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You should be able to use something like this:
$dropdownFieldName = 'DropDownField';
$hiddenFieldName = 'HiddenField';
$_POST['form'][$hiddenFieldName] = $_POST['form'][$dropdownFieldName][0];
This is not official customer support. To receive your support, submit a support ticket here.
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!