Where can I change the functionality of the "Post" button on Journal Entries?

mattystern
Kilo Sage

Hello,

Where can I find the script/function for the "post" button associated with "Additional Comments / Work Notes"? 

find_real_file.png

 

I want to be able to hide it on a custom table / build one with different functionality, but I cannot find where it lives...

Thanks in advance for your help.

7 REPLIES 7

Jaspal Singh
Mega Patron
Mega Patron

Hi Matt,

 

Did you check property: glide.ui16.live_forms.enabled. Also, suggest you to follow link & look for its impacts. 

 

Thanks,

Jaspal Singh

Hi Jaspal,

Thanks for the quick response! I see this is for enabling /disabling the feature as a whole, which is helpful information. Do you know of a way to this on a specific form or will this always be a global update?

As an example, instead of using the base system "Update" button on a custom table, I copied the UI action for "Update" into it's own UI Action so I did not have to edit the base system "Update" functionality. Am I able to achieve the same with the "Post" button here?

-Matt

Yes, its generic. If you want to make it specific for form then you can use onLoad Client Script that uses dom manipulation as below.

function onLoad() {
	var removebutton=document.getElementsByClassName("btn btn-default pull-right activity-submit")[0];
removebutton.style.display="none";
}

 

Thanks,

Jaspal Singh

Hi Jaspal,

This works for hiding the post button, thank you! Is there a way to edit its functionality as well?