3 of 3 people found this helpful
Yes, I've done this - you need to use the full syntax of prompt:
prompt(message, pickList, fieldAreaWidth, fieldAreaHeight, password, required, defaultValue)
My example was a field called ContractReqTemplate:
$(prompt("Enter Contract No:", "", 0, 0, _, true, ContractReqTemplate))
So if your prompt was for a field called Notes then it would be something like
$(Prompt("Please add fulfillment notes", "", 400, 200, _, true, Notes))
First chance to reply sorry. Will try this (hopefully later tonight) and feedback. Thanks for the help!!!
Out of curiosity how did you know that $(prompt) could contain a full syntax and even what this was? I've always used others expressions found in rules as examples or managed to guess what should go somewhere.
2 of 2 people found this helpful
It's in the Admin Help section, I can rarely ever remember syntax so I normally look there - the page called 'Working with Built-in Functions' has links to all the functions down the right hand side - it's really useful!
Works perfect thanks. Always forget about the admin section!
Do you know if validation can be put in place to avoid users entering a fullstop to bypass the required field? Or would this check need to be on the field not the prompt?
I think I would probably put it in a before save rule based around length or something like that.
Will give it a go. Cheers