• 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: Validatation rule

Validatation rule 12 years 2 weeks ago #22857

Hi there ,
is it possible to validate a field from a value in a table?

Almost like what you explain in "Populate dropdown from external tables" article and "Unique registration number" but using a table.

Thanks!

Stefano
The administrator has disabled public write access.

Validatation rule 12 years 1 week ago #22878

the code used for the array is:
function registrationCode($param,$extra=null) {
		$validCodes = array('AAAA','BBBB','CCCC','DDDD');
		$bul = true;
		foreach($validCodes as $validCode)
		if(strtolower($validCode) == strtolower($param)) {
			$bul = true;
			break;
			}
		else
		$bul = false;
		return $bul;
}

I would like to take the AAAA or BBBB.... from a MySQL table.

HELP!!!
Stefano
The administrator has disabled public write access.

Validatation rule 12 years 4 days ago #22995

Come on! No one knows how to do it?

Thanks anyway...
The administrator has disabled public write access.

Validatation rule 12 years 4 days ago #23004

Im still learning RSForm, but try submitting a ticket with the URL of your form. You can get a faster response that way.

I'm in the same boat as you, and am trying a few validation rules that I am having problems with.
The administrator has disabled public write access.

Validatation rule 11 years 10 months ago #24063

  • taiyo
  • taiyo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I'd love to know a solution to this also, it would be great as an out of the box feature, i'm sure lots of people would use it!
The administrator has disabled public write access.

Validatation rule 11 years 10 months ago #24078

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
An out-of-the-box solution can't be implemented in a feasible way. The coupon codes can be stored in variable locations and different structure. RSForm!Pro does provide all the necessary mechanisms to implement this for yourself. We can't provide copy and paste solutions for each and every scenario.

I imagine that the actual problem is the scripting part (advanced functionality, does require a little extra knowledge), but if take a closer look at the RSForm!Pro product documentation, you will find almost 90% of what you need.

So what exactly do you need ??

Step 1: Create a custom validation rule. Easy: http://www.rsjoomla.com/support/documentation/view-article/75-custom-validation-rules.html

Step 2: Find out how can i extract some values from a database table: http://www.rsjoomla.com/support/documentation/view-article/94-auto-populate-a-list-from-a-table.html

Step 3: Perform the validation against the extracted values - just use the registrationCode sample...
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!