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

Subscribe to our news:
Partners
Testimonials
Marco De Luca: "I can handle now both version of SQLite Databases, 2.x and 3.x. Your SQLite PHP Generator is among the best tools I have seen".
Svetlio Mitev: "I am really sure that you guys can make the best PHP code generators to be found worldwide".

More

Add your opinion

SQLite PHP Generator 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