Adding available forms to a page type

Kristopher Maier asked on January 17, 2017 19:59

I would like to add a field to the "page (menu item)" page type where I could select an available form from a drop down list. Is there a macro I can put in the data source that pulls that information?

Thank you!

Correct Answer

Trevor Fayas answered on January 17, 2017 20:15

If you are purely trying to get a FormName into a field on the page, you can probably more easily do a "SQL" driven drop down:

Select FormName, FormDisplayName from CMS_Form

Otherwise your forms are found in the macro

{% SiteObjects.Forms %}

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on January 17, 2017 20:14

If I understand correctly, you just want to pull a list of current online forms correct? If so, just go to the Form Controls app and search for BizForm. Once you get into edit the BizForm form control, simply check Page Types box in the Show Control In area and save it. Then go back to your page type and add a new text field and select the BizForm form control vs. the textbox. This will store the code name of the bizform you select so you can use it elsewhere.

1 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on January 17, 2017 20:18

For your custom field in Field Appearance choose Form Control - Drop Down List. Choose SQL Query as DataSource below and put there select FormID, FormName from cms_form

1 votesVote for this answer Mark as a Correct answer

Kristopher Maier answered on January 17, 2017 21:48

I was able to see the list using this " SiteObjects.Forms.DisplayNames# " my goal is to be able to select a form for a page through the "form" tab.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.