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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Userform in a popup?


Go to End


4 Posts   1798 Views

Avatar
nicknick

Community Member, 15 Posts

2 March 2013 at 2:50pm

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?
Thanks
Nick

Avatar
haantje72

Community Member, 69 Posts

10 March 2013 at 1:11am

Edited: 10/03/2013 1:12am

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

Avatar
nicknick

Community Member, 15 Posts

10 March 2013 at 3:01am

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?
thanks
nick

Avatar
DFwebuild

Community Member, 1 Post

16 July 2014 at 1:08pm

Edited: 16/07/2014 1:16pm

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

Cheers