Jump to content

[SOLVED] Form field *required* validation


d3vilr3d

Recommended Posts

Hi guys,

 

I have php form I'm trying to edit.  Some of the fields on this form is required, and some aren't.  I want to adjust it so none of the field is required.  But I am not able to find the place to set this value.  Following are 2 piece of the code for 2 fields, 1 is required and 2nd is optional.  Please help me determin where I might be able to adjust the validation.

 

Required

<TD class="form_label"><?PHP echo $site_parameters->getParameter("site.form.post.title.label");?><b style='color:#900'>**</b>:</TD>
<TD colspan="2"><?PHP $ui->setName("_title"); $ui->setStyleClass("post_title"); $ui->getTextBox($_REQUEST[_title]); echo $post_title_error;?></TD>

 

Optional

<TD class="form_label"><?PHP echo $site_parameters->getParameter("site.form.post.price.label");?>:</span>
<?PHP $ui->setName("_price"); $ui->setStyleClass("post_price"); $ui->getTextBox($_REQUEST[_price]);?>

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/71996-solved-form-field-required-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.