can I hide a field group on a transaction record u...
# ask-stanley-ai
m
can I hide a field group on a transaction record using SuiteScripts?
c
AI generated answer (using internal Slack threads):
Yes, you can hide a field group on a transaction record using SuiteScripts. You can use a beforeLoad user event script to achieve this. The script would have access to the form in the context, and you can set the display type of the field to 'hidden'. Here is a sample code snippet that was shared in the conversations:
Copy code
javascript
currentRecord.getField({ fieldId: "custbody_famid" }).isDisplay = false;
In this example, the field with the id "custbody_famid" is set to not display. You can replace "custbody_famid" with the id of the field group you want to hide. Please note that this method only works for fields that are generated via script. If you want to hide standard fields, you might need to create a custom form where they don't show and assign it to the specific role. ****** 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.852282584
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847115278
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841283262
Please provide your feedback on this answer.