hi all, what is "best practise" of showing a user ...
# suitescript
m
hi all, what is "best practise" of showing a user friendly message when having validations in beforeSubmit that makes the record not being saved. Throw error is not user friendly and message.create can only be used on client side, is there some nice "work around" that is commonly used?
s
Before submit is generally not going to be as user friendly as
saveRecord
on a client. But you need to consider, if you need validation something like a csv import, or a script modifying a record, there is no user interaction, so throwing an error is actually the most user friendly way there (the error will pop up in the csv results)
But if you wanna just use
saveRecord
, a simple
alert('Message here')
works fine.
m
yes, I know, would like it to work in integrations and csv-imports as well as it is better performance..
thank you @Sandii 🙏👍