how to create employee drop down/list field that d...
# ask-stanley-ai
n
how to create employee drop down/list field that dynamically pulls values and filters employees so that the bill payment payee is not the same name as the employee
c
AI generated answer (using internal Slack threads):
To create an employee drop-down/list field that dynamically pulls values and filters employees so that the bill payment payee is not the same name as the employee, you would need to create a custom SuiteScript. Here's a high-level overview of how you could approach this: 1. Create a SuiteScript that is triggered on the field change event of the Payee field in the Bill Payment record. 2. In this script, when the Payee field is changed, perform a search on the Employee records to find any employees with the same name as the selected Payee. 3. If an employee with the same name is found, you can then filter out this employee from the Payee field options. This can be done by using the
removeSelectOption
method on the field object. Please note that this is a high-level overview and the actual implementation may vary based on your specific requirements and NetSuite setup. ****** 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.828994632
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.796456814
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.79609257
Please provide your feedback on this answer.