PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Shortcode within a form isn't working properly

  1. Okay, so here is the issue I am having. I'm using Gravity forms on a site here...

    http://www.lowercolumbiacap.org/energy-assistance-appointment/

    I've set the form up with some HTML blocks and within those HTML blocks I've included some shortcodes for a plugin called Appointments+.

    Now the short codes are working because the calendars are showing up just fine. However, when you click one of the available dates on the calendar (they are green in color) it should populate the white space to the right of the calendar with the available time slots.

    When I move the Appointments+ shortcodes outside of the Gravity Form (and just place them in the page itself) this function works just fine. So, somehow the shortcode being within Gravity Forms is causing that function not to work.

    Any ideas on what the issue might be? I really want to get this working because it's going to really simplify the signup process for an upcoming event.

    Posted 11 years ago on Thursday May 2, 2013 | Permalink
  2. David Peralty

    Gravity Forms wasn't meant to work with shortcodes within our form system, and probably neither was Appointments+. What might be happening is that their JavaScript isn't completely being called because of how you are loading their plugin (their script can't detect that there is a calendar on that page and load all of the proper scripts). You might want to contact them about this, but I don't know if there will be a way to force this to work.

    Posted 11 years ago on Thursday May 2, 2013 | Permalink
  3. I did contact them and they said to contact you guys, haha. I'll assume that I probably won't get anywhere on this.

    What I think I'll do is iFrame those appointment calendars and that should work since it will be on an entirely different page all together (hence the iFrame).

    I wish Gravity Forms would build some sort of 'add-on' for appointment scheduling like this. You'd be surprised, theres tons of them out there but this Appointments+ plugin is the only decent one I could find, and even then it's seriously lacking.

    I'll bet Gravity Forms could build a really nice one =]

    Posted 11 years ago on Thursday May 2, 2013 | Permalink
  4. David Peralty

    Thanks, we have a number of people trying to pull us in many directions relating to the future of Gravity Forms, and as much as we would like to be all things for all people, we just don't have the ability to do so. Contact them again about what I've said though, as it might cause a lightbulb to go on. Ask them if all the scripts needed to do what you want are being enqueued despite the fact that it is being pulled in through another plugin and not through WordPress normally.

    (We've seen this happen with Gravity Forms when people try to pull it in using AJAX/Iframes/etc...)

    Posted 11 years ago on Thursday May 2, 2013 | Permalink