The value can’t be set in the Edit context In Beforeload

When a record is in edit mode, the user event script can’t set value in any fields in beforeload entry point. But we can set value in create context, using user event script in beforeload entry point. This restriction only exists in beforeload entry point. In beforeSubmit entry point, we can use setValue to set… Continue reading The value can’t be set in the Edit context In Beforeload

Add Prescription Table in Customer Record

A prescription is a custom record available in the system we want to show all available prescriptions for that customer. The following script creates a prescription HTML table in the customer record. The Prescription Table shows all essential data like the quantity of prescription items used in Transactions, Auto-ships, Pet & Vet details, etc. Also… Continue reading Add Prescription Table in Customer Record

Add recipients when email send using Email button in Invoice record

Requirement: Add recipients when email send using Email button in Invoice record On hitting the Email button in the Invoice, autofill up to 4 contacts with a specific role under the Customer in the Invoice record in the “To” field of the email. Solution: The script was created for the message record (user event). The… Continue reading Add recipients when email send using Email button in Invoice record