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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.