jr@omnipotent.com.au
Member
Hi,
I'm on V3.0.4
I'm attempting php validation on an element in a repeatable group. I want to check that either the target element or another element in the repeatable group has a value. My problem is retrieving the value of the other element (BookingEnquiry_1_repeat___Members_Staying) is failing. Both elements are integers.
Here's the code I'm using:
$members = JRequest::getVar('BookingEnquiry_1_repeat___Members_Staying');
$total = ($members + $data);
return ($total > 0);
I've attached a capture of the 2 elements as the appear in the Elements list.
What am I doing wrong?
I'm on V3.0.4
I'm attempting php validation on an element in a repeatable group. I want to check that either the target element or another element in the repeatable group has a value. My problem is retrieving the value of the other element (BookingEnquiry_1_repeat___Members_Staying) is failing. Both elements are integers.
Here's the code I'm using:
$members = JRequest::getVar('BookingEnquiry_1_repeat___Members_Staying');
$total = ($members + $data);
return ($total > 0);
I've attached a capture of the 2 elements as the appear in the Elements list.
What am I doing wrong?