Title: Shortcode not working in form fields.
Last modified: September 16, 2022

---

# Shortcode not working in form fields.

 *  Resolved [aashto19](https://wordpress.org/support/users/aashto19/)
 * (@aashto19)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-in-form-fields/)
 * Great plugin.
 * However, I’m struggling to display within certain locations.
 * Is there a way to combat this problem? I feel like I have tried everything. The
   issue is that if I enter the shortcode for the calendar in these fields it doesn’t
   work. It just displays as
    [ics_calendar url=”[https://www.pitchup.com/supplier2/pitch/bookings/8671879:DFL-yanlB2IiLb3MxkfkfC-e-Ra7MRbOoRvDIPQBI7E.ics”%5D](https://www.pitchup.com/supplier2/pitch/bookings/8671879:DFL-yanlB2IiLb3MxkfkfC-e-Ra7MRbOoRvDIPQBI7E.ics”%5D)
   and not the calendar.
 * There must be a solution. I thought it might be to do with defining permissions
   in the functions.php to allow shortcode or somewhere in the plugin in question
   but I’m at a miss. Would love to be able to use.
 * Thanks in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-working-in-form-fields%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-in-form-fields/#post-16017834)
 * Hi… the link you shared for “the page I need help with” doesn’t display anything
   but a logo for me, but I’m going to take a guess that what you are trying to 
   do is add a date picker to a reservation form, is that correct?
 * The short answer is, that’s not what this plugin is for, and it can’t do it, 
   at least not directly.
 * Date pickers are a complicated kind of “pseudo” form field. They’re not a real
   form input. Essentially they’re just an HTML table displaying a calendar — much
   like what ICS Calendar does — but they have JavaScript connected to them so that
   when you click on a date in the calendar, it inserts that date as a text string
   into a hidden input — the _actual_ form input.
 * That is not to say that ICS Calendar couldn’t be adapted to that purpose. It 
   actually would not be very difficult, _except_ for the fact that it doesn’t presently
   output the full date (e.g. day-month-year) as a string in the HTML anywhere. 
   Beyond that, a few lines of jQuery/JavaScript code would be all you’d need to
   make it work with a hidden input in your form. But because this is all highly
   specific to the details of your form, and what is being done with the data from
   the form when it’s submitted, it’s not something I could post a code sample for
   here and expect it to just work.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode not working in form fields.’ is closed to new replies.

 * ![](https://ps.w.org/ics-calendar/assets/icon.svg?rev=3427980)
 * [ICS Calendar](https://wordpress.org/plugins/ics-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ics-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ics-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/ics-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ics-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ics-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-in-form-fields/#post-16017834)
 * Status: resolved