How can I find out what the ID of a button is on a...
# ask-stanley-ai
a
How can I find out what the ID of a button is on a job record page so I can hide it
c
AI generated answer (using internal Slack threads):
To find out the ID of a button on a job record page, you can inspect the page using your browser's developer tools. Here are the steps: 1. Open the job record page in your browser. 2. Right-click on the button you want to find the ID for and select "Inspect" or "Inspect Element" from the context menu. This will open the developer tools panel and highlight the HTML code for the button. 3. Look for the
id
attribute in the highlighted code. The value of this attribute is the ID of the button. However, it's important to note that not all buttons will have an ID that you can use to hide them. Some buttons in NetSuite are system-generated and cannot be modified or hidden using SuiteScript or workflows. If the button you want to hide is one of these, you may need to consider other options, such as adjusting user permissions to prevent certain actions. If the button is a custom button added via a workflow or a user event script, you can use the
record.removeButton({ id: 'custpage_{yourbuttonid}' });
method in SuiteScript to remove it. Replace
{yourbuttonid}
with the actual ID of the button. Please note that these methods should be used with caution, as they can affect the functionality of the page and the user experience. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813206375
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803535044
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802686453
Please provide your feedback on this answer.