Set a InputMask in code behind

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Set a InputMask in code behind

    Dear friends,

    How i can set a inputmask for a field in code behind, using a conditional string to set a different inputmask for each case?

    Exemple:

    String TipoPessoa = "";
    
    if (TipoPessoa=="j")
    {
        InputMask = "99.999.999/9999-99";
    }
    else
    {
        inputMask = "999.999.999-99";
    }
    Thanks in advance,

    Gustavo Coelho
    Last edited by fabricio.murta; Jul 26, 2016 at 8:39 PM.

Similar Threads

  1. [CLOSED] InputMask plugin
    By luiz in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 26, 2013, 10:00 PM
  2. [CLOSED] InputMask JS error
    By stratadev in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 13, 2013, 4:27 PM
  3. Disabling InputMask using JS
    By joaxazevedo in forum 2.x Help
    Replies: 1
    Last Post: Mar 06, 2013, 3:17 PM
  4. [CLOSED] InputMask
    By sigmasafi in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 28, 2013, 4:08 AM
  5. How to add an InputMask plugin?
    By joaxazevedo in forum 2.x Help
    Replies: 3
    Last Post: Feb 21, 2013, 8:28 PM

Posting Permissions