Forum Post: RE: Rollbase - JavaScript functions in Triggers

Status
Not open for further replies.
S

Santosh Patel

Guest
The basic difference between a field update trigger and an object script trigger would be the former expects a value back. Your code would only seem logical but Rollbase norms require that it be of the following format var myVar = setMyVar(); function setMyVar() { return "Toto"; } myVar; Notice no "return". Update field value triggers expect a value back (you don't need return here) while object script triggers just execute code and have a void return. I hope this answers your question on either of the trigger types. Regards, Santosh

Continue reading...
 
Status
Not open for further replies.
Top