cancel
Showing results for 
Search instead for 
Did you mean: 

Form field dropdown always shows 'No fields available'

aprileggers
Champ in-the-making
Champ in-the-making
I've created a simple form via the form builder in Activiti 1.4.4, that contains two fields - a text field (name) and a display text field (greeting). I'd like to use the name value in part of the text displayed by the greeting field, but when I edit the greeting field and attempt to insert a form field, the "No fields available" message is shown in the dropdown. When I attempt to edit the visibility tab of the greeting field, the form field dropdown populates with information about the name field.

I thought the issue might have something to do with this post, so I created a process using the BPMN editor, and attached my form to a user task. When I open the form after attaching it to the user task, I see the same behavior (no form fields in the general tab of the greeting field, but the name field appears when selecting the form field dropdown on the visibility tab).

Am I missing something about how to reference form fields in other form fields, or is this a defect?

Thanks in advance for any help!
4 REPLIES 4

shagufta1
Champ in-the-making
Champ in-the-making
Hi,

Are you trying to store value of name field as well as displaying its value in the same form? That won't work… because after submitting the form only the form field value will be stored… So you need to create another from and use display value that will definitely shows the option for name value in form-filed drop down…

Hi Shagufta,

Thanks for your reply. For my example, I was trying to store and display the name field on the same form.

I'm seeing similar behavior to what I describe above when I try to use the selected value of a dropdown in the populating REST call of another dropdown. For example, I have two dropdowns (car make and car model) in the same form. I want the car model dropdown to be populated (via a REST service) based on what the user has chosen from the car make dropdown. However, when I try to add the value of the car model dropdown to the REST call for car make, the form field dropdown shows "No fields available". Is this also because the dropdowns are in the same form? Is there some way to cascade dropdown values in this way?

Thanks!
April

shagufta1
Champ in-the-making
Champ in-the-making
Hi April,

As I said you can not get the value of any form field in the same form unless and until the value has been stored once… But if you still require those values in the same form you can write javascript for it…

aprileggers
Champ in-the-making
Champ in-the-making
Hi Shagufta,

Thanks for the clarification; I really appreciate it!

April