At the bottom of your form file you will see lines like this:
function validatePage1()
{
retVal = true;
if (validateField('field_1','fieldBox_1','menu',1) == false)
the 1 at the end just before == is telling the validate page function that this field is required. Make this value 0 and the field is no longer required.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had the same problem. I set all of my fields to not required, but it was still requiring them, so I just out-right deleted every line associated with the validation stuff:
function validatePage1()
{
retVal = true;
if (validateField('field_1','fieldBox_1','menu',0) == false)
retVal=false;
if (validateField('field_2','fieldBox_2','text',0) == false)
retVal=false;
if (validateDate('field_3','fieldBox_3','date',0,'04/23/2010','04/23/2009') == false)
retVal=false;
looks like that.
Once I deleted all of that section, it works fine. No more required fields!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a field that is required at the moment.
I would like to turn that feature off now.
Where do you change the validate code
to stop it from being required??
TIA
never mind found it finally.....its at the bottom of the page...dud
At the bottom of your form file you will see lines like this:
function validatePage1()
{
retVal = true;
if (validateField('field_1','fieldBox_1','menu',1) == false)
the 1 at the end just before == is telling the validate page function that this field is required. Make this value 0 and the field is no longer required.
never mind found it finally.....its at the bottom of the page...dud
I have looked and Have the fields set to 0. I am still getting required field. What could be the problem?
function validatePage1()
{
retVal = true;
if (validateField('field_1','fieldBox_1','menu',0) == false)
retVal=false;
if (validateField('field_2','fieldBox_2','text',0) == false)
retVal=false;
if (validateDate('field_3','fieldBox_3','date',0,'04/23/2010','04/23/2009') == false)
retVal=false;
I had the same problem. I set all of my fields to not required, but it was still requiring them, so I just out-right deleted every line associated with the validation stuff:
function validatePage1()
{
retVal = true;
if (validateField('field_1','fieldBox_1','menu',0) == false)
retVal=false;
if (validateField('field_2','fieldBox_2','text',0) == false)
retVal=false;
if (validateDate('field_3','fieldBox_3','date',0,'04/23/2010','04/23/2009') == false)
retVal=false;
looks like that.
Once I deleted all of that section, it works fine. No more required fields!