Code

Discussion on Gravity Forms Auto Formatter

Discussion on Gravity Forms Auto Formatter

Cart 368 sales

PluginOwl supports this item

Supported

This author's response time can be up to 5 business days.

85 comments found.

Hello, is it safe to install your plugin on existing gf installation with forms already in use? Many thanks

Hello customer

Yes, generally speaking you can safely install on existing Gravity Forms installation and use on existing forms. However, as with any other plugin ..we recommend you always install plugins and test for any issues and for operation on a dev version of your site before going live if the site or data is of any importance.

Hello, just wanted to let you know installation went fine on existing install and live forms. Really really love this addition to GF, its worth it for the copying fields alone. Recommended!

Thank you! We are glad you enjoy the features. You can leave an official rating if you would like, and please let us know if there is any other auto formatting feature suggestion you have :)

Hi, i installed the plugin but i can not get a specific replacement function to work. I need a zipcode to be in the format ‘9999 AA’ which means 4 digits, a blankspace, 2 letters. How can i achieve this?

1234AA must become 1234 AA 1234 AA must remain unchanged

Kind regards, Jasper

Hello

Address field type is formatted all the same for its multi parts so you cannot apply something to zip that is not wanted on other parts of field.

If by any chance all ZIP end in AA. You can change “AA” to “ AA” then change a double space to a single space.

Suggestion is to use single line text input for ZIP. Use input mask “9999 aa”. Use auto format option for all caps.

thanks, i also remembered i can use gforms default mask to add the space

When gravity forms calculation displays .33 can I change the display to 33% for the user?

Hello customer

For changing this on text field you can do it for the saved results only. You can remove the “.” Using replace text option and append the % using the append option.

However if this is a number field calculation you can likely just multiply by 100 and put a % after the display in the printout/merge tag usage to convert decimals to percentages.

Hope this is help :)

Can i change this input ‘1234aa’ into ‘1234 AA’ with your plugin?

Hello customer

You can do this thing in possible ways. You can replace all “a” with “A” , but to put a space character in , you would have to replace “aa” with “ AA”. Or if AA always is supposed to be at end and only appear there, you can have “aa” “ aa” “AA” and “ AA” all removed and also use append with “ AA” so it is always added to end. It will also NOT add to end if already present at end so you likely do not have to bother with remove it as listed above.

The plugin has many powerful tool to do things like this , and only need to figure out ways to target only exactly what you try to do. :)

what if the client enters ‘1234 aa’, there should be no extra space, just the aa turned into AA

You can replace spaces with nothing (removes spaces) and replace aa with AA. Only needing to target what you want to happen in an effective way.

Hi there, when I enable the pre-submission entry review page so that auto formatter option will work, the preview reviews hidden fields that I don’t want the user to see. I’ve tried adding CSS classes such as “gf_invisible” and “gf_hidden” but neither work in the review section.

Do the users have to review their submission in order for it to work with Auto Formatter?

Hello

The review page is optional. There is no need to turn it on for the plugin settings to work. Almost all settings of the plugin operate independently of the others. :)

I updated the plugin lastnight and now I get this error on WP

Got error 'PHP message: PHP Parse error:  syntax error, unexpected '}', expecting end of file in /wp-content/plugins/gravity-forms-auto-formatter/gravity-forms-auto-formatter.php on line 379\n'

How can this be fixed?

ok thank you

That fixed it, thank you

Happy to assist. :)

Is it possible to use this plugin to auto-replace blank values for a given field?

I’d use default values, but they don’t work because I’m writing data through the API… so whatever the API writes overwrites the default value even if the value sent to the API is blank.

Hello

This is not fully understood. You can make a field to be required if it should not be blank. Or fill a value pre form rendering in with the Form’s short code by default. If you are overwriting the blank values when using the API you could possibly make change there as well.

But I do not believe that the plugin text replacement function with blank value.

Thanks

How I can type , . or space in Numeric Characters Only or Alpha Characters Only

If you wish I can give you an access to the page via email and so you can verify, the problem of its plugin in is gravity view when editing the entries. my email is wallydomingo@gmail.com

We have contacted gravity view about it and are waiting for a response. If thier plugin does not run gravity forms validation hooks on user edits, it is up to them to add this functionality.

On the other hand, If you are referring to administrator level edits. This is normal. An administrator editing data on the backend can enter things that would not pass form validation on the front end. That’s just up to them to format it validly if editing.

I just confirm the issue is in gravity view, edit entry option, frontend area.

can i prevent user from entering special characters like ’ $#! into input fields?

Hello

Yes.

You can use the alpha only, alphanumeric only, the centralized blacklists, or the field specific blacklists to accomplish this.

Using the blacklists you can disallow any specific characters vs only allowing alpha or alphanumeric characters.

Hope this helps :)

thank you for the quick response.

Can you tell me how I can translate the plugins validation notifications?

I am aware of how to create a translation :) but run into issues with translating some plugins because a lot somehow have a different place and way where it needs to be stored. Are there related specifics regarding your pluign?

p.s. your plugin is translation compatible, correct? Can’t find txt variables, only hard coded texts? Or am I not understanding it correctly?

Devs are still working towards translation ready. Will likely be passed via _e

Would be a – major – improvement, at least when all front office notifications would be translatable.

I have now modified the code of one php file but that will be overwritten with an update of the plugin. The standard _e way would be best imo.

Hello, I purchased this plugin so that it would force the first letter of each name typed into my client’s Contact forms to capitalize. I expected that if a client typed into First Name: john Last Name: smith – we’d get the result submitted to us with First Name: John Last Name: Smith – it worked when sending the form to our email but I also send this form into HubSpot. And it didn’t work there. Do you know of anything I can do to get it to work in HubSpot?

Hello,

We just tested the current download version here and the version currently hosted on Codecanyon here since the update is the correct 2.4.7

You can use the Envato Market Plugin to manage your envato updates more automatically if you would like: https://envato.com/market-plugin/

But If you go to your downloads for your account the current file you can download for GF Auto Formatter is 2.4.7 You can just use FTP to overwrite your current files if you unzip the file, or you can select to save the plugin settings (on settings page) and then uninstall the plugin and install the new version. :)

Hi again. I just installed 2.4.7 and tested it twice. It didn’t work. I entered my husband as a test contact and my dog as another. In both cases, the plugin forced the caps on the Gravity Form so that, as I was entering the information, even if I typed a lowercase letter, the form displayed a capital letter. But in HubSpot, the name Sheldon Cooper (our dog) and my husband’s name showed up in lowercase. I thought maybe I needed to refresh the page where my form resides so I refreshed it – and I use a Chrome extension that makes sure my page is refreshed – and it still didn’t work. Is there anything else that you can do? Or do you think that I am missing something in the settings?

Hello

It sounds like this may be something from hubspot itself.

As you’ve experienced, the forms (with our plugin) now directly input the text with the case as set in the plugin, so if it’s changing at all from that it’s not within the gravity forms arena , but would have to be with how hubspot is processing the data.

if this is the case , You can try entering random capitals on a normal field not using (or using) our plugin case settings and it should still result in hubspot collecting it in lowercase.

..in which case we could only recommend to try using the official hubspot add-on for gravity forms (in assumption it collects data as entered)

Different support question—in the situation that there are hundreds of form fields, across many forms, is there a method to globally force apply the Central Strict Text list to all input fields instead of manually selecting the checkbox on every single form input setting?

We could look into adding a form wide option, but currently there is not a global option.

Attempting to do Central Text Replacement for “’” (& r s q u o ;) without spaces. Unfortunately, the plugin seems to convert it to the special apostrophe of ’ and does not replace it in a text area field.

Please let me know how I can convert all instances of ’ and the html entity version of the same into a normal ’ apostrophe.

Not sure what the database entry would be or what to look for. I’ll wait until you are able to get word back with your development for the answer. Thank you for looking into this.

Ok

I’ll be sure they have a look ASAP.

I am not at a system presently but as a suggestion I would try to escape the html like “\’” but it may be taken literally then and if strict fire not ..the standard text replacement could possibly function

But moreover, if Wordpress is replacing it anyway in the db within GRavity forms entries as well, you shouldn’t need the html. And you could just use the literal characters as there is no html. you could test this to see if the html input survives the GRavity forms data save without any replacement happening, or if it is also converted.

..after further review it appears you are correct in that Wordpress is likely filtering the HTML which means that you do not need to include the html special char version at all. Just use the literal characters.

If you wanted to stop Wordpress from converting html special chars indirectly ..you could look at running “add_filter( ‘run_wptexturize’, ‘__return_false’ );” , but generally we avoid changing core functionality.

PreSale Question: Is it possible to format the numbers as per Indian number system? For example we write 1,200,000 as 12,00,000. We use lakhs instead of millions.

Hello

There’s no way to directly convert the numbers in that way from the plugin, but you could have someone insert a small code snippet to simply move the “millions” comma for that one field if it’s 6 digits over to 5 digits over.

Hope this helps :)

Can this be used to auto format text fields to wrap a link to it?

Yes. You can use the options to add any characters before and/or after the users input, such as and <\a> but the display of the link as actual clickable html will of course depend on where it’s printed out/used.

Hope this helps! :)

Hello! Great Plugin.

I noticed that when I select either the Alpha, Numeric, or Alpha-Numeric only validation, it removes the ability to add a space to the field. So, I deactivated these options and instead added all the character’s that I wanted to block into the Individual Blacklist Option, but it doesn’t work at all.

Do you have any suggestions? I need Alpha, Numeric, and Alpha-Numeric to work but allow the user to add a space.

Hello

The alpha/numeric options work in real-time , where the blacklist works on form validation. So when you say “it does not work” I am wondering if you attempted to page forward or submit?

You can definitely blacklist a list of individual characters as desired.

We are also currently looking to add a feature to “only allow specified characters” ..which is kind of opposite of the blacklist, but may work in real time like the alpha/numeric options. This is completely tentative at this time and there is no estimated release schedule if it is implemented.

Hope this helps :)

in the meanwhile, can you add a new feature like this?

/////Only allow this characters. (Any others than thats doesn’t allowed)/////

Thank you for the mention. The testing code has been removed. The version number remains the same, but you can re-download the plugin for the “PASS/FAIL” to be removed.

It would be very possible to add a custom regex option, but The implications of allowing users to enter code which could result in errors or site crash may be a bit much. As it is the characters must all be escaped for security. I see they are escaping it there too, but it still possibly leaves security implications. However, there are already hooks in GF to run at validation for devs to write custom regex…assuming most who can write regex could also write a small action function to just hook onto the specific use case field.

Hello, I add Turkish character support to your plugin with gfafcustomonly

//custom only
if ($field->gfafcustomonlyField && !$field->is_form_editor()) {
    $content = str_replace('type=', 'oninput="this.value=this.value.replace(/[^a-zA-Z0-9.,\'\s\u00f6\u00e7\u015f\u00fc\u011f\u0131\u00d6\u00c7\u015e\u00dc\u011e\u0130\-]/,' . "''" . ');" " type=', $content);

Can you add a regex textbox for this area?

Like

//custom only if ($field->gfafcustomonlyField && !$field->is_form_editor()) { $content = str_replace(‘type=’, ‘oninput=”this.value=this.value.replace(/[$your_custom_regex]/,’ . ”’’” . ‘);” ” type=’, $content);

I want to paste my regex code to textbox and it must be automatically set the $your_custom_regex with my pasted regex code.

I add SetFieldProperty(‘gfafcustomonlyField’, this.unchecked) to all other options like alphaonly alphanumericonly and numericonly.

I sent an email to you about my fully working code (gravity-forms-auto-formatter.php)

you can search “gfafcustomonly” in your php file

Hello

We do not do custom dev work unless contracted. However, you would just need to change the field option to emulate one of the existing text box options we have already, and then use the option variable directly where you have “$your_custom_regex” to place the options text content into your existing code.

I have a white page problem with using woocommerce gravity forms product addon’s while clicking add to cart button..

CRITICAL Cannot redeclare gfaf_blacklist_check() (previously declared in /home/xxxx/public_html/wp-content/plugins/gravity-forms-auto-formatter/gravity-forms-auto-formatter.php:69) in /home/xxxx/public_html/wp-content/plugins/gravity-forms-auto-formatter/gravity-forms-auto-formatter.php on line 69

What version of the plugin are you running?

WooCommerce Gravity Forms Product Add-Ons Version 3.3.8 | Gravity Forms Auto Formatter Version 2.4.4

Can you please send us an email via our author page contact form? We can work with you on this particular issue via email to see if your specific case and resulting error can be resolved.

I would like to truncate x characters from the start and/or end of a field. Is this something I can do with your plugin? It is possible I could do a search & replace in some cases I guess.

Hello

While we’re not sure of the use case here, the plugin does have both a “min character” and “max character” setting (for some fields that don’t already offer max-char) . You could use them together if you want the input to be a certain # of characters all the time.

That said , the plugin currently has no option to simply truncate X characters from beginning or end of an input. It would be a simple addition but we’re not currently sure it would be a widely used option to have it use more space in the field auto formatter options.

You can append or prepend to ADD to beginning or end, an yes, you can use text replacement if your cutting off the same pattern from beginning or end all the time to for example remove 3 leading zeros and dash such as 000- that are always present or a trailing -01 that’s always there. You can just replace that with nothing, assuming this would never appear in the text portion that is needed.

Hope this helps :)

Just bought it. Only wanted to restrict an number field to input only numbers. I thought this would lead to an numeric input on iPhone. Unfortunately this is not happening.

Useless for me then. Can you implement this feature?

Hello

You can certainly use the plugin to restrict number inputs to allow numbers only in real-time, but are you looking to have the iOS or Android select wheel come up? That interface is made available by the OS for inputs of type: select, date/date-time/time.

If the input is not a time, date, or date-time which iOS can prepopulate the possible picker interface values from, it should be of the type “select” where you give it predetermined values.

Hope this helps. :)

We are looking for a number input (0-9) for a 5 digit input zip code. Can’t find a solution described your way.

Yes, unfortunately It comes down to it that the selector wheel interfaces are a function of iOS as you have to have predefined selections to use the selector interface.

You would either have to enter all possible zip codes , or you could possibly style 5 selects in a row with 0-9 as options, and then aggregate thier values to the actual single numeric input field which would likely be hidden. the latest versions of gravity forms allow passing merge tag values toward to populate other fields so you could likely aggregate them to the hidden field using that method.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey