RyanM-02
02/18/2025, 4:41 PMCeligo AI
02/18/2025, 4:41 PMAI generated answer (using internal Slack threads):In SuiteScript 1.0, you can hide buttons on a sublist using the
removeButton
method. Here's an example:
javascript
var payproposaldetail = form.getSubList('recmachcustrecord_pc_pp_ct_link');
if(payproposaldetail){
payproposaldetail.removeButton('newrecrecmachcustrecord_pc_pp_ct_link');
payproposaldetail.removeButton('customize');
payproposaldetail.removeButton('attach');
}
However, in SuiteScript 2.0, there is no equivalent method to removeButton
. The removeButton
method is an undocumented function in SuiteScript 1.0 and it does not have an equivalent in SuiteScript 2.0.
If you're using SuiteScript 2.0, you might need to manipulate the DOM directly to hide the buttons. Please note that this is not a supported method and might lead to unexpected results.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/18/2025, 4:41 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863262832
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849579811
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849163651
Celigo AI
02/18/2025, 4:41 PM