Please Note: We are no longer using forums to facilitate standard support. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Escape input mask value

  1. I want my input mask to be "+971#######". I can replace the # with 9, but the first 9 is literal. I want it to be a mandatory 9 in my mask, how can I do that? Thanks!

    Posted 3 years ago on Sunday April 1, 2012 | Permalink
  2. No help?

    Posted 3 years ago on Wednesday April 4, 2012 | Permalink
  3. Unfortunately, that's not possible using the input mask. That would have to be done using the gform_validation hook and custom validation. The input mask forces a format, but won't validate the value itself for something that granular. So you would just setup the input mask how you want it displayed and then use the hook to make sure it starts out with the 9.

    http://www.gravityhelp.com/documentation/page/Gform_validation contains an example of usage as well as a link to a more thorough example.

    Posted 3 years ago on Wednesday April 4, 2012 | Permalink

 

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only