• 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: Required Field Validation but not...

Required Field Validation but not... 11 years 3 months ago #26389

  • david31
  • david31's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
I need to make a field required but not use the first field as I want that to be "Please Select an Option..."

How do I do that?
The administrator has disabled public write access.

Required Field Validation but not... 11 years 3 months ago #26400

  • seal305
  • seal305's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Thank you received: 1
You can validate it yourself like

PHP on form process
    if ( $_POST['form']['dropdown'] = 'badvalue') {
        //make it invalid
        $invalid[] = RSFormProHelper::getComponentId('dropdown');
    }
Last Edit: 11 years 3 months ago by seal305. Reason: readability
The administrator has disabled public write access.

Required Field Validation but not... 11 years 3 months ago #26417

  • david31
  • david31's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
where do I put that?

Attributes? or in the validation?
The administrator has disabled public write access.

Required Field Validation but not... 11 years 3 months ago #26459

  • david31
  • david31's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Where does this go? Where do I add this code??
The administrator has disabled public write access.

Required Field Validation but not... 11 years 3 months ago #26462

Go to the form, select Properties>PHP Scripts and in the second box down (Scripts called on form process) add the code.

K
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!