How to remove the edit button from invoices with a...
# ask-stanley-ai
s
How to remove the edit button from invoices with a custom field checked?
c
AI generated answer (using internal Slack threads):
To remove the "Edit" button from an invoice when a custom field is checked, you can use a workflow with the "Lock Record" action. This action will remove the "Edit" button from the record, preventing users from making changes to it. Here's a step-by-step guide: 1. Navigate to the workflow manager in NetSuite (Customization > Workflow > Workflows). 2. Click on "New Workflow". 3. Set the "Record Type" to "Invoice". 4. In the "State" section, add a new state. 5. In the "Transitions" section of the state, add a new transition. Set the "Trigger On" field to "After Record Submit". 6. In the "Conditions" section of the transition, add a new condition. Set the "Field" to your custom field and the "Value" to "Checked". 7. In the "Actions" section of the transition, add a new action. Set the "Action Type" to "Lock Record". Please note that even with the record locked, users can still make inline edits to the record via a saved search or list. To prevent this, you can add an "Error" action on "Before Record Submit" in the workflow. This will display an error message and prevent the record from being saved if a user tries to make an inline edit. ****** 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.825615406
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825510263
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824079037
Please provide your feedback on this answer.