Hey,
Thanks for sharing the link, it helps to check out the issue and see where and how the plugin is being used.
1. Calendar icon appearing twice
It looks like this is happening because your page is calling the ‘gform_post_render’ trigger twice. Normally this trigger is only ran once per form load or page change.
I would call this a bug and it may be caused by Gravity Forms, another plugin, custom code or even your theme.
I’m working on a workaround for this, but you may run into issues with other plugins running things more than once as well.
2. Ability to control the calendar icon
Good point.
I’m working on the ability to choose if an icon is displayed or not.
3. Date format not displaying when field is ‘date picker enabled’
I’m having troubles reproducing this issue.
I’ll keep at it and see if I can work out why it might happen.
Hopefully I’ll be able to release an update for these in the next 24 hours.
Thread Starter
nir_r
(@nir_r)
Thanks much for your detailed answer 🙂
Based on your answer, I went to check the code of the website, and I would like to add the following information:
1. I looked at the other GF related plugins that I’m using in this website (GF entry expiration, GF coupons, and GF eWay Pro gateway), and didn’t find any reference to ‘gform_post_render’. I eliminated the theme as well (a simple and clean genesis child theme). I suspect that it has to be with a simple custom code that I added, given by the GF support, in order to set a column as a select element with predefined values, and set a column as a textarea instead of an input.
I’m using these two filters:
add_filter( ‘gform_column_input_1_2_3’,……
add_filter( ‘gform_column_input_content_1_2_3’,……
Other than that, I have no idea what may call the ‘gform_post_render’…
2. Thanks 🙂
3. May I suggest a way in which you could recreate it (these are the steps that the form that I reference in this tread was created) –
– Create a new form and add a list element to it with 3 columns.
– Install and activate your previous plugin version
– Go back to your form and set one of the columns to be a date picker.
– Save and check if the date format is still shown or not…
Thanks again for all the help 🙂
Nir
Thread Starter
nir_r
(@nir_r)
Hi,
Just upgraded to 1.6 – thanks for the quick code changes 🙂
The front-end looks fine now – the calendar icon is not shown, however, the back-end has some issues, and I assume they are just visula and not representing the actual data in the database:
As you saw in my list, there are 3 columns, and only one of them is a date picker, and after the upgrade, all 3 columns are checked as date picker fields and the new radio button value is not set (not enabled) for the date field.
Since the front-end behaves as expected (only one column is a date picker, and the calendar icon is hidden, per my configuration), I assume that the issue is just a matter of populating the editor with the right values from the database.
Thanks much :),
Nir
Hey nir_r
Sorry for the delay. I wish I had seen this post earlier – I just noticed the same issue with all columns being ticked (despite not all being enabled).
I can see what’s going wrong and will push out an update shortly.
Thanks again
Thread Starter
nir_r
(@nir_r)
Thanks much 🙂
Will test it in the next few days after upgrading to your newer version.