More information at Gravity Forms developer docs and WordPress Codex. Luckily, there’s a special filter to register “safe” scripts and styles – gform_noconflict_scripts. In this case, the extension must “tell” Gravity Forms core that there are some extra scripts to be allowed when no-conflict mode is turned on. In case you’re developing or debugging a Gravity Forms extension it is then recommended that in case you need to enqueue some style or script file on the Gravity Forms admin pages, you need to take into consideration that some users will use the no-conflict mode. When this mode is turned on, all the scripts and styles not allowed by the plugin itself, won’t load in the Gravity Forms admin pages, including the ones that are part of other Gravity Forms add-ons plugins that are not prepared to work in the no-Conflict mode. Pretty cool feature, hum?! Gravity Forms settings screen Set this to ON to prevent extraneous scripts and styles from being printed on Gravity Forms admin pages, reducing conflicts with other plugins and themes. This method checks the submitted data to confirm that the submission is from a Gravity Forms form. It passes the form object so you determine if your scripts should be loaded for the given form. Gravity Forms binds the GFForms::maybeprocessform() method to the wp action. The Gravity Forms plugin has a general setting to turn on/off the no-conflict mode: javascript php wordpress gravity-forms-plugin Share Improve this question Follow asked at 17:19 jrswgtr 2,247 8 21 47 Add a comment 2 Answers Sorted by: 1 Youre looking for gformenqueuescripts. Funny that on my local WordPress installation I wasn’t able to reproduce the issue, but at the production installation it was happening consistently. Turned out those odd behaviours were caused by a missing javascript file which was supposed to be enqueued with the Form Editor screen, but in the end it wasn’t. Today I’d the opportunity to spend time debugging some odd behaviours at Gravity Forms’ form editor screen, where some of the features related with one extension in particular weren’t working properly. Recently I’ve been working a lot with Gravity Forms and some of the add-ons available to extend Gravity Forms features.
0 Comments
Leave a Reply. |