Jump to content

How to make a form field non required? (suppliers)


Puriom

Recommended Posts

  • 3 months later...

/controllers/admin/AdminSuppliersController.php

 

 

........
array(
 'type' => 'text',
 'label' => $this->l('Address:'),
 'name' => 'address',
 'size' => 100,
 'maxlength' => 128,
 'required' => true
),
........

 

and just remove 'required' => true (and the , from one-line before it) from all the input field you don't want to require

 

I did not test it out let me know if that works

 

backup your AdminSuppliersController.php

Edited by HA!*!*Y (see edit history)
Link to comment
Share on other sites

  • 6 months later...

/controllers/admin/AdminSuppliersController.php

 

 

........
	array(
	 'type' => 'text',
	 'label' => $this->l('Address:'),
	 'name' => 'address',
	 'size' => 100,
	 'maxlength' => 128,
	 'required' => true
	),
........
and just remove 'required' => true (and the , from one-line before it) from all the input field you don't want to require

 

I did not test it out let me know if that works

 

backup your AdminSuppliersController.php

 

it deosn't work but i think there is validation sentence must be removed also but i don't know

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...