Skip navigation
kw259
Currently Being Moderated

Scripting for a pattern validation message

Apr 11, 2012 4:01 PM

I have a date/time field that is read only but becomes required if the user types something in a different field. The validation pattern works because I set those before I turned the field to read only but the validation pattern message is just the default again (the custom message I had typed in disappears when the field is changed to read only). Does anyone know how to set the validation pattern message through javascript? I can't seem to figure it out.

 

Thanks

 
Replies
  • Currently Being Moderated
    Apr 12, 2012 1:33 AM   in reply to kw259

    You can access the validation pattern message property through script using

     

    DateTimeField1.validate.message.formatTest.value
    

     

    The scripting validation pattern message is done using

     

    DateTimeField1.validate.message.scriptTest.value
    
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points