D Simm
D Simm

Reputation: 130

Are there Radio Buttons Group and Dropdownlists in Orchard Dynamic Forms?

I'm developing a form using Orchard Dynamic Forms module. There is no option for a Radio Button Group controls and a dropdownlist to be used on form.

I have used Text fields, single radio buttons successfully.

How to use Radio button groups and dropdownlists in orchard Dynamic Forms?

Upvotes: 0

Views: 365

Answers (1)

R.C
R.C

Reputation: 10565

Yes the Radio button Groups and Dropdownlists are available in Orchard.Dynamic Forms. Such elements are actually treated as Enumerations.

When creating a form, Under Form elements there is an Enumeration element as seen below.

enter image description here

Drag it to your Form , when the Edit Window open up. As seen below, from the Input Type option you can create a dropdown or a radio button list.

enter image description here

If you want to learn more, check the .CSHTML files at location: Orchard.DynamicForms -> Views -> Elements and the code at location:Orchard.DynamicForms -> Elements

Upvotes: 2

Related Questions