i mean they can select a different value and save ...
# suitescript
c
i mean they can select a different value and save the record but not the one you dont want them to
👍 1
c
@creece Thanks, Ok last question - I think. So what if the record is already at that selected value, and they go to edit the record, then because of the script, they wont be able to save the record anymore.... this is all stemming from sales reps not correctly selecting the correct value
c
it only will alert if that field is modified.. onSave is a different client script event so if its already selected, they can still save
you may want to put the check onSave instead of validateField so it won't allow save if its selected and they are that role.. if you want them to be able to save it w/ that value selected on an existing, then i'd stick w/ validate Field