Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Steven Langfield: "I wanted to drop you a mail to say how freaking AMAZING your software is. It will be the best £100 I have ever spent. I have still to read all your documentation to take full advantage but what you have created is truly amazing".
Charles Phillips: "I very much like the program and all of its functionality! Would be happy to give you an endorsement or recommend it to others - saves me a ton of time".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

setRequired

Sets or clears the required attribute for a control.

 

Signature:

function setRequired([true|false])

 

Example:

 

if (sender.getFieldName() === 'payment_method') {

    var isCreditCard = editors.payment_method.getValue() === 'Credit Card';

    editors.credit_card.setVisible(isCreditCard).setRequired(isCreditCard);

}

 

The example can be seen live in our Feature Demo.

 

See also: getRequired



Prev Return to chapter overview Next