loudy
Member
Hello,
I have tried to following this post: http://fabrikar.com/forums/index.php?threads/compare-2-fields-for-validation.10762/
but I was not able to do what I need.
I have a form with 2 elements:
1) joindata: with joomla user table: ID
2) Student ID confirmation box.
I created a php validation in the seudent id elements and add the following:
$StudentID = JRequest::getVar('xesefc_users___mto___StudentID');
$MTO = JRequest::getVar('mto_users___mto___MTO');
return $StudentID == $MTO;
So I'm not sure, how to validate that the second box need have the same number from the box1.
Or if there is any way to auto fill the box 2.
so if I select or type anything in the box 1, the box 2 will be auto fill and read only so no one can change the input in the box 2?
Please help.
I have tried to following this post: http://fabrikar.com/forums/index.php?threads/compare-2-fields-for-validation.10762/
but I was not able to do what I need.
I have a form with 2 elements:
1) joindata: with joomla user table: ID
2) Student ID confirmation box.
I created a php validation in the seudent id elements and add the following:
$StudentID = JRequest::getVar('xesefc_users___mto___StudentID');
$MTO = JRequest::getVar('mto_users___mto___MTO');
return $StudentID == $MTO;
So I'm not sure, how to validate that the second box need have the same number from the box1.
Or if there is any way to auto fill the box 2.
so if I select or type anything in the box 1, the box 2 will be auto fill and read only so no one can change the input in the box 2?
Please help.