UI Action visible only in the bottom of the form

developer18
Tera Contributor

Hii,

 

One of the UI action is visible only in the bottom of the form and while loading it just comes and disappears at the Top of the form, but not in Bottom of the form, How can i hide that in form. Its one custom application form not any OOB form

 

I could see one script for this is 

function onLoad() {
//To autopopulate the Error message when condition 
var owns = g_form.getValue('owns_manages_item_s');
if(owns == 'no'){
$$("button[id='submit_for_review']").each(function(item){
item.hide();
});

g_form.showFieldMsg('owns_manages_item_s',getMessage('owns/manages item(s)'),'error');
}else{
$$("button[id='submit_for_review']").each(function(item){
item.show();
});

}
}

 

UI action is submit_for_review

Thanks

1 ACCEPTED SOLUTION
13 REPLIES 13

but i want it to be visible based one some conditions which are already in condition field.

 

Okay, then what is the issue you are facing? are the conditions not matching?

that button showing only in the bottom of the page as screen shot attached i want to hide that.

 

Hi,

If the button is showing at the bottom then it means the conditions are matching for it to be visible. You cannot have right conditions and still make it hidden. its contradictory.

May be the button at the top is hidden with some javascript code. Kindly check that.

Thanks for reply Asif,   I m not finding anything else than this script posted.. anywhere else i can for this.