Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Gravity form bug – loading scripts when using an accordian
New Landing › How can we help? › Cardinal › Gravity form bug – loading scripts when using an accordian
- This topic has 18 replies, 3 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Cardinal
-
October 15, 2014 at 2:38 pm #120494
Hey,
Just noticed a small bug with Cardinal accordions and Gravity forms. Thinking back, I remember Ed identifying the same or similar bug with Cardinals tabs and solving it.
Basically, when you place a gravity form inside an accordion it doesn’t load a necessary script (potentially scripts, but I have only identified one issue so far).
The issue I noticed is with the choosen jquery script. That is responsible for the multi-select field in gravity forms operating correctly. See the attached screenshot for the error.
If I were to place the exact same form on a blank page, it works fine. Also works if I were to place it within Cardinal tabs. Just doesn’t work with accordions…
Attachments:
You must be logged in to view attached files.October 15, 2014 at 2:39 pm #120497This reply has been marked as private.October 16, 2014 at 12:16 pm #120785Hey,
Just run into another issue with the accordion asset so may as well post it in here.
See screen-shot – I set up an accordion asset and in section 1 I created a two column layout – half text box on the left and half image on the right.
However, as you can see on the front-end, it just stacks the elements on top of each other. Is that a bug?
Attachments:
You must be logged in to view attached files.October 19, 2014 at 5:37 am #121257Hi Anthony,
The accordion didn’t support multiple column for a reason – can’t remember why right now. I’ve tested with multiple columns and seems to work ok however, so I’ll enable this again.
Can’t login to your site again, keep getting redirected to coming-soon from the login link!
– Ed
October 19, 2014 at 7:24 am #121260This reply has been marked as private.October 21, 2014 at 5:30 am #121748Just noticed you are using it within a widget area.. Wondering if that script isn’t output as it isn’t found in the “sidebar” as such.. Or do you use the exact same setup in tabs?
I can send over a build with the accordion changes if you like.
– Ed
October 21, 2014 at 9:07 am #121817This reply has been marked as private.October 22, 2014 at 11:16 am #122295This reply has been marked as private.October 22, 2014 at 11:33 am #122311This reply has been marked as private.October 22, 2014 at 1:55 pm #122364Hi,
It’s already looking better. Just missing the multiple select enhanced functionality.
https://www.dropbox.com/s/cyqtw50cfz2ji8s/gravity_forms_inside_accordion.png?dl=0You should contact Gravity Forms support to understand what is that other error after submitting the form.
-Rui
October 22, 2014 at 2:13 pm #122371Yea looking better alright.
As I said above, the accordions asset is causing a required script/s to not be loaded.
Not too worried about that error, won’t be allowing actual signups on my demo site. If the error happens on other installs, I will get in touch with them.
Thanks.
October 22, 2014 at 10:56 pm #122466Can you check again the enhanced multiselect is already working.
https://www.dropbox.com/s/nsnnagx2se1vbca/gravity_forms_accordion_fixed.png?dl=0
-Rui
October 23, 2014 at 9:11 am #122557Hi Rui,
That’s great, all seems to be working now.
What did you do to solve the issue? i.e. what files did you edit and will the new files/fixes be included in the next Cardinal update?
Thanks.
October 23, 2014 at 9:28 am #122567Hi,
In the end of the process the solution was achieve with only css.
It was used the following css code that this also in your custom css options so that no problem occurs with a future update..spb_accordion .gfield_select{ height:120px!important; background-image:none!important; } .spb_accordion .gfield_label{ cursor: default; display: inline-block; font-family: 'Source Sans Pro'; font-size: 16px; font-style: normal; font-weight: bold; } .spb_accordion .gform_wrapper label{ font-size: 13px; font-weight: normal; font-family: 'Source Sans Pro'; font-weight: bold; color: rgb(68, 68, 68); } .spb_accordion .gfield_password_strength{ font-family: 'Source Sans Pro'; font-size: 16px; } .spb_accordion .gform_button{ font-family: 'Source Sans Pro'; font-size: 14px; } .spb_accordion .gfield_description{ font-size: 13px!important; } .spb_accordion { display:block!important; }
Regarding the css code being included in a future version will have to check that with Ed.
-Rui
October 23, 2014 at 9:44 am #122569Hi Rui,
Not sure I follow here. So the choosen script is not being applied within accordions – so how would css only solve the issues?
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.