1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

simple mask for input field

Discussion in 'Community' started by mzrobson, Jun 14, 2010.

  1. mzrobson

    mzrobson New Member

    Level: Community
    I create a class to use mask in input field text. You need fabrikjs form's plugin.
    Upload the file mz_mask.js to .../com_fabrik/plugins/form/fabrikjs/scripts.

    In element, for example, Telefone, select Javascript, and click add button.
    In action select 'keyup'.
    In code type 'mymz_mask.set_mask(this,'phone');' or
    'mymz_mask.set_mask(this,'(99) 9999-9999')

    In form, for example, Cliente, select Submission plug-ins, and click add button.
    In Do select 'Run js code', In Both.
    In JS File select mz_mask.js. If you can?t see this file is because you don't upload the file.

    Now you can test your form.
     

    Attached Files:

  2. dasmonstrum

    dasmonstrum New Member

    Level: Community
    Hi There, thanks for the post!

    I can?t find the right place to upload the files, I think the things change. I could find just:

    ../components/com_fabrik/plugins/form/fabrikphp/scripts/

    And in Form I select Submission plug-ins and I found just: Run PHP.
    I couldn?t find the: Run js code, as u said.

    Please could help me?

    Thank you!
     
  3. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    The fabrikjs form plugin isn't installed by default. You'll need to either find the ZIP in the downloads section, or build a ZIP for it from SVN.

    -- hugh
     
  4. margarett

    margarett Member

    Level: Community
  5. dasmonstrum

    dasmonstrum New Member

    Level: Community
    HI Hugh, thanks for the reply!
    I tried to find this plugin in the download sections, but the folders are empty.
    I will try to use the SVN.

    Or could someone send me just this plugin?

    Thank you!

    ps.: Thank you margarett!
     
  6. yudayuda

    yudayuda New Member

    Level: Community
    @dasmonstrum - here you go, fresh from SVN.
     

    Attached Files:

  7. jomy

    jomy New Member

    Level: Community
    How to change input for text

    I would like add text format "AAAA-AAAA-AAAA-AAAA"
    Please help me to modifed you code for except string data not only number.


     
  8. luis_r89

    luis_r89 New Member

    Level: Community
    Hi guys, sorry ressurecting this post but, would someone please, let us know how to get things working on F3??? Think paths have changed, so if someone could explain step by step it would be very appreciated. Thx
     
  9. p38

    p38 Member

    Level: Community
    friendly bump,

    I also need this mask option, esp for inline edits


    Paul
     
  10. varst

    varst Member

    Level: Community
    Hi! In a phone number field I need use input mask 99 99 9999, but sometime a phone number is shorter.... for example 99 99 999 and in the list I have this number in view: "53 00 652_" or "11 82 ____"
    How can I hide this "_" in input mask?
     
  11. troester

    troester Well-Known Member Staff Member

    Level: Community
    You can add a php validation with "Match or replace"=replace and php code
    return str_replace('_','',$data);
     

Share This Page