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

Subscribe to our news:
Partners
Testimonials
Tony Broadbent: "Such a great product! I have been struggling to hand craft pages which, with your PHP Generator, I created beautifully within 5 minutes of downloading it".
Jonathan Oakes: "This is a lovely application. It's easy to hook into my own bespoke applications. It's very powerful, yet really quite simple to use. Thanks for this".

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