something really STRANGE here: vendor record, I'm ...
# ask-stanley-ai
m
something really STRANGE here: vendor record, I'm loading the record in a user event script, and start getting the values from different fields everything perfect, except for one free-text field, where: - value in the UI shows: ckixxj2hfjaudjkc - value in the user event script shows: et3tfb0henqp7n3z
c
AI generated answer (using internal Slack threads):
Based on the provided Slack threads, it seems like the issue you're facing is related to the way NetSuite handles custom fields in user event scripts. In the first thread, the user was trying to access a temporary field generated by another user event script. The field was only visible in view mode and not in edit/create mode. The user was advised to understand the script that generated the field before using it, as the field might not exist in the context where their own script is running. In the second thread, the user was trying to get the value of a non-stored value field via a user event script. The field was getting its value from a saved search, which worked fine in the UI, but not in the user event script. The user was advised to load the record to access the field value. In the third thread, the user created a select field type in a beforeLoad user event script and populated it with data using a fieldChanged client script. However, the data in the field was not saved after saving the record. The user was advised to create a custom field on the transaction to store the data. In your case, it seems like the value you're seeing in the UI is different from the value you're getting in the user event script. This could be due to the field not being loaded properly in the script, or the field value being changed by another script after it's loaded. You might want to check the scripts that are interacting with this field to see if they're causing this issue.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846793532
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842229486
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842094123
Please provide your feedback on this answer.