Title: Shortcode inside a modal?
Last modified: January 30, 2024

---

# Shortcode inside a modal?

 *  Resolved [melaniesinmek](https://wordpress.org/support/users/melaniesinmek/)
 * (@melaniesinmek)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-a-modal/)
 * Hello Andrea,
 * I was trying to get the shortcode working inside a modal but for some reason 
   the only hting it shows then is the ui collapsible and ui theme options (the 
   ones that are in the settings) rather than the actual form fields.
 * Are there any restrictions on how to use the shortcode? Can it be used inside
   a pop-up modal at all?
 * For reference, I am using the latest BuddyBoss platform and them version.
 * Also, I noticed I get an error when I try to test the widget: “There was an error.
   e is undefined.”
 * Just wanted to let you know 😉

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-a-modal/#post-17384384)
 * Hello Melanie,
 * Could you please detail how you create your modal, so I can reproduce the problem?
 *  Thread Starter [melaniesinmek](https://wordpress.org/support/users/melaniesinmek/)
 * (@melaniesinmek)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-a-modal/#post-17384791)
 * Hi Andrea,
 * I am really sorry for asking you. I have been trying to get this done for days
   and it never worked. After I received your reply I wanted to try it one more 
   time with ChatGPT and it actually worked. For some reason I got simpler solutions
   this time. I tried Bootstrap and JS as modals and both worked fine. Although 
   for the JS one I had to set no jQuery UI. So this is all good now 😉
 * Once I finally got the modal to work with the shortcode I also wanted to see 
   if the widget was working again. But this one is still the same. No matter where
   I try to add the Profile Search widget, I always get the same error: “There was
   an error. e is undefined.” – just in case someone else asks you about this (unless
   this only works with BuddyPress?)
 * Anyway, thanks for your quick reply Andrea.
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-a-modal/#post-17387507)
 * Hi Melanie,
 * No problem, I’m glad you found a suitable solution.
 * Re the widget problem, it doesn’t occur on my BuddyBoss test site. I’d offer 
   to take a look at your test site, but that’s against the policy of this forum.
   If you are interested, we can continue this conversation on [my BP Profile Search support forum](https://dontdream.it/support/forum/bp-profile-search-forum/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shortcode inside a modal?’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-inside-a-modal/#post-17387507)
 * Status: resolved