How can I make it so that a form only appears on certain pages, the document types are going to be the same but I would like it so that the Umbraco user could have a checkbox called something like "Show form" which when checked would should the form on the page. I realise I could do it with a different template but I would prefer if there was a way to have a checkbox instead. Any ideas?
Doc2form only on certain pages
Hi,
How can I make it so that a form only appears on certain pages, the document types are going to be the same but I would like it so that the Umbraco user could have a checkbox called something like "Show form" which when checked would should the form on the page. I realise I could do it with a different template but I would prefer if there was a way to have a checkbox instead. Any ideas?
I'm not completely sure I know exactly what you want, but you could just add a true/false property on the document type?
I have never tried this, but you could try placing a panel around the doc2form macro and setting Visible to true or false based upon the property...
Of course, this would be inline template code... Let me know if you need an example.
Yes an example would be nice please
might do it
Yes that works a treat thanks, just had to add the double quotes after text/css that you missed out :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.