PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. 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 4 years ago on Sunday April 1, 2012 | Permalink
  2. No help?

    Posted 4 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. contains an example of usage as well as a link to a more thorough example.

    Posted 4 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