This topic is locked

Required fields

7/21/2010 3:38:21 AM
PHPRunner General questions
R
rogelio36 author

Hello,
Is it possible to remove the red asterisk for any required fields?
Thank you.

A
ann 7/21/2010

Hi,
proceed to the Visual Editor tab and delete the line '*-Required field' above the buttons.

Then edit generated \include\commonfunctions.php file.

Find the code:

if(count($validate['basicValidate']) && array_search('IsRequired', $validate['basicValidate'])!==false)

echo'&nbsp;<font color="red">*</font></span>';

else

echo '</span>';



and comment it.

R
rogelio36 author 7/26/2010

Hi, I comment these 4 lines and red asterisk do not show, however, now when I search for any records, that database does not return any data. If I uncomment, database returns records when I search again. Any thoughts?
I appreciate your help.

R
rogelio36 author 7/26/2010

Anne, I changed the code to the following and it seems to be working fine.
if(count($validate['basicValidate']) && array_search('IsRequired', $validate['basicValidate'])!==false)

echo '';

else

echo '</span>';