cancel
Showing results for 
Search instead for 
Did you mean: 

Creating custom form types that can hold multiple values.

sirreginald
Champ in-the-making
Champ in-the-making
I'm currently dynamically rendering forms in my web app by by outputting html based on the formProperty type, using jstl
e.g. <c:if test="${formProperty.getType() == 'string'"> <input type="text"…etc.
I currently use the form type "enum" when I want to render a dropdown list i.e. <select><option>etc. This isn't helpful though when I eant to use the enum values as check boxes or radio buttons or other such types.
So what I basically what to know is how to create a form type that basically acts like an enum, i.e. you can fill in the form properties in activiti designer and access them through formProperty. So I could have one called "checkbox" for example that outputs checkboxes to html.
I hope I'm making sense. I tried creating my own form type and I followed Joram's tutorial but I'm honestly just lost as I'm only new to java and processes in general.
2 REPLIES 2

trademak
Star Contributor
Star Contributor
You want to implement this custom form type in the Activiti Explorer?
What is it in specific that you are struggling with?
You can look at the existing form types on how to implement a new one.

Best regards,

sirreginald
Champ in-the-making
Champ in-the-making
I want to implement this custom form in my own web app that's using Activiti. I generate my forms based on the formProperty type so I basically need a form type that acts like the enum type but is called something else as I already have a way of generating enums (using a dropdown list) but I'd also like to be able to generate checkboxs, radiio buttons etc.

I'm able to make a basic new formtype but I'm struggling with how to use it to access the formProperties that you can fill in using Activiti Designer on Eclipse.