To make a field not required you need to remove the ‘required’ validator. Open process.php and find the PHP code for the element you want to change. There should be code that looks like the following:
In this case, simply removing this line will make the field no longer required. Note: instead of
$element it will be the unique element name.
In some cases, the elements have been configured by adding multiple validators at once using an array as shown below.
'required' string and the comma after it. The multiple validators line would now look like this:
It might also be a good idea to remove the asterisk from the element label on your web page to let users know that the field is no longer required.