title: How to use the "Masked Input" module in Drupal 7
body: <p>I am trying to build a <strong>form</strong> in <strong>Drupal 7</strong>, one of the fields needs to have an <strong>input mask</strong>. I found the plugin <a href="http://drupal.org/project/masked_input" rel="nofollow"> masked input</a> it seems like what I am searching for . Only there is no documentation on how to implement it (I read about currency and this plugin, yet here it is only about getting it to work).</p>
  
  <p>I am new to Drupal, but searching on forums I came up with the following code:</p>
  
  <pre><code>function report_expenses_form($form, &amp;$form_submit) {
    libraries_get_path('maskedinput') . '/misc/ui/jquery.maskedinput-1.3.js';
  ...
       $form['cash_advance']['amount'] = array(
          '#title' =&gt; t('Cash Advance : '),
          '#type' =&gt; 'textfield',
          '#default_value' =&gt; t('$ 00,00'),
          '#required' =&gt; TRUE,
          '#mask' =&gt; '$?999.999.999,99',
        );
  ....
  </code></pre>
  
  <p>I installed the "Libraries" and "Masked Input" plugins in Drupal and flushed my caches.</p>
  
  <p>I downloaded the <a href="http://digitalbush.com/projects/masked-input-plugin/" rel="nofollow"> jquery.maskedinput-1.3.js </a> and put it in my {DRUPAL_HOME}/misc/ui/</p>
  
  <p>any Ideas?</p>
  
  <p>thank you in advance</p>