I was hoping someone could tell me why this code is not checking the structure_name field for being empty.
function btn_OK()
{
if (structure_name == '')
{
var error_dialog_result = plugins.dialogs.showErrorDialog( 'Error', 'Fields Marked with * must have a value', 'OK')
if (error_dialog_result =='OK')
{
return;
}
}
else
{
databaseManager.setAutoSave(true);
application.closeFormDialog();
}
}