Sales Question?
Welcome, Guest

TOPIC: Field Masking for Input Values

Re: Field Masking for Input Values 2 years, 2 months ago #32284

By the way, regarding to your explanation on how to get to the element ID's, I thought it might be nice to share that you can easily find out an element ID by doing the following:
  • Go to the element that you want to know the ID of
  • On the 'Advanced' tab, select 'Actionscript' type 'Library'
  • Check the checkbox 'Focus' and select function 'ff_showaction'
  • Save the properties of the element, save the form and go to a preview
  • When you select the element, a popup will appear showing the text "Action focus performed by element ff_elem2113". (well, in my case it said 2113, not very likely it will show you the same number... )


I think this is quicker than going through te source of the webpage. However, not all element types have the option of assigning an action script, so both methods can come in handy.

(this post is not exactly meant for you Terry, I don't think I am in the position of telling you something new about BF)

Another way to quickly find element ID's is by going to your database, for example with phpMyAdmin.
If you go to the table 'jos_facileforms_elements', probably your latest entries are the ones you are looking for. So scroll down or
SELECT * FROM  'jos_facileforms_elements' ORDER BY  'id' DESC 

The first column shows you the ID (without 'ff_elem', but with a little imagination you might be able to add that... ), columns 6 and 7 give you the Name and the Title.

Hope it helps someone.
Dick
  • dtiernego
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0

Re: Field Masking for Input Values 2 years, 1 month ago #33960

Did you get this to mask the input? I follow this to a T and I wasn't able to get it to mask the input.
  • aderse02
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Karma: 0

Re: Field Masking for Input Values 2 years, 1 month ago #33972

@aderse02: did you try this on different browsers? I experienced some problems with Google Chrome because of the cache not clearing good and I missed some debugging info. Internet Explorer (8) provided me with direct error information and directed me to the problems I had, which had to do with the quotes I used.

If your code starts with double quotes like this
echo "<script 

...than your other parameters and values have to be with single quotes like this
src='/includes/js/maskedinput/src/jquery.maskedinput.js'

So, the second part of the form piece looks like this
echo "<script>
JQuery(function($){
   $.mask.definitions['~']='[0-9-]';
   $('#ff_elem1693').mask('99-99-9999',{completed:function(element,action){ff_Age_action(element,action);}});
   $('#ff_elem2115').mask('99-99-9999');
   $('#ff_elem1497').mask('9999 aa');
   $('#ff_elem3395').mask('099~~999999');
});
</script>";

Hope this helps.
  • dtiernego
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0

Re: Field Masking for Input Values 2 years, 1 month ago #33973

Actually I just messed around with this again and found that it was an address issue. I had to use the full address reference name in order for it to work.

So, "/includes/js/...js" did not work.
"localhost/mapadb/includes/js/...js" did work.
  • aderse02
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Karma: 0

Re: Field Masking for Input Values 1 year, 4 months ago #65263

Has anyone had any luck using this on a form when Community Builder is installed?

I get the mask to work if CB is not installed, but if it is the mask does nothing...
With CB installed I have gotten the user data to the form fields correctly...

Any suggestions? this is holding me up..

Thanks
  • mnprivate
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re: Field Masking for Input Values 1 year, 4 months ago #65266

Hi,

I guess community builder loads jquery already, can you confirm? See the HTM source in the browser, if you see "jquery.js or "jquery.min.js" multiple times, then it's a colliions.

However, last week I added a tweak that prevents BF from loading jquery if a jquery object already exists. If you could upgrade using the upgrade package, it could help. If not, then please get back to me.

Regards,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.41 seconds

Flatrate Membership: Professional Subscription

Get lifetime access to all of our products and 1 year of professional support -- for just $199 USD. No limits on domains!. Includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

Get it from here

Recurring Customer Discount - 50% Off!

Get a 50% discount on our Professional Subscription if you have been purchasing a subscription from us in the past -- no matter when. The Professional Subscription includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

How to receive the discount:

  • Purchase a basic 1-Year Subscription from here.
  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and proof of your old purchase.
  • We will then upgrade your account to the Professional Subscription.

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year Basic or Professional Subscription plans.

How to receive the discount:

  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with a proof of purchase (for example a paypal receipt).
  • Await payment instructions and enjoy your membership!

About

Crosstec GmbH & Co. KG

Hohenzollernring 57

50672 Cologne, Germany

Imprint