hi all,
I've a requirement wherin i have a dropdown field and if the user doesn't fill the field it has to automatically take a default value "QU" when the form is saved.
Can anybody provide me pointer or code for doing this.
I've tried using this .... in the event Presave...but doesn't work.
if ( $.rawValue == "null" )then
$.rawValue = "QU"
else
$.rawValue
endif
Regards,
Amie
if ($.rawValue == " " )then
$.rawValue = "QU"
endif
Put it on the MouseExit action. And of course remember to set FormCalc as the Language.
Notice that I only used the quotation marks with a space between them to stand for null.
You don't need the else statement since the If statement implies that only if the condition in the IF statement is met will it come into play. Otherwise the field will have whatever is entered.