Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Userform in a popup?


4 Posts   558 Views


2 March 2013 at 2:50pm Community Member, 15 Posts

Hi all is there a simple way to include a userform in a popup, i would like to just include the $userform in a popup box rather than load a whole page including headers and menus?


10 March 2013 at 1:11am (Last edited: 10 March 2013 1:12am), Community Member, 69 Posts

make an userform wich does not show up in the menu
make an link wich opens the popup. In the popup call by for instance an iframe the userform

or... (what i do myself with movies and should work for forms to)

use prettyphoto (place in the website root) and link your page/pages with prettyphoto
make the userform and do not show in menu
make an prettyphoto link in the page to load/project prettyphoto html pages


10 March 2013 at 3:01am Community Member, 15 Posts

thanks for the reply, i had tried using a similar method but it delivered the whole page in the pop up header, logo, footer and everything else, I just want a popup showing just the form, i thought about adding new page headers and theme for the forms but didnt get any further, correct me if im wrong but wont your method show the whole page too or is there a special way of linking to just the form part?


16 July 2014 at 1:08pm (Last edited: 16 July 2014 1:16pm), Community Member, 1 Post

I came in the same problem, I solved by creating a simple template for UserDefinedForm page type (, that shows only forms, without navigation, footer, etc etc. I've placed it in the 'templates' folder of my custom theme.