Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,648
Community Members
 
Community Events
176
Community Groups

Confiforms set default value in dropdown field which users may not edit

Probably an easy one for the experts: 

I have a dropdown field with status (open, in progress, done). This field may only be edited by a small group of users. When any user adds a new dataset in the form, the status should always be "open" at first. 

I tried to realize this with Rules for Field Definition where I set 

condition = status:[empty]
action to execute = Set value 
Values to set = status=open 

But this does not work when a user is adding a dataset who is not in the specified group... 

Thanks for any help

 

1 answer

1 accepted

1 vote
Answer accepted

Solved: This was easier than I thought, the default value is not just set by the registration control macro. 

If the default value is not just (read: only) set by the registration control, what other field must be set?

Also curious on what else you needed to set @jan 

Hi guys, 

What are your questions specifically? I understand what Jan wanted and did, but I cannot understand your questions (from Jan's question context)

Thanks

Alex

Hey @Alex Medved _ConfiForms_ 

I just faced a similar problem. But I want to set the default value of the status dropdown based on a condition.
Lets say there is another dropdown field with options ONE and TWO, I want the Status dropdown to default to Open only if the User selects TWO in the previous dropdown. If the user selects ONE, the Status dropdown stays empty.

I tried two ways of doing this -

  • Using the "Set Values" parameter in the "Registration Controls" macro but I cant figure out how to implement a conditional statement here.
  • Using the "Set Values" action in the "Rules for Field Definition" macro but the condition seems to not work for Dropdowns. I tested the condition with a text field and it worked just fine. Is there a specific way (using IDs?) to set conditions for Dropdowns? Attaching the Status field screenshot - VMO is the status Dropdown field who's value I want to set to One based on the previous dropdown.Set Values.jpg

Of course it works for the dropdowns and for any type of field

But conditions (filters in ConfiForms) operate with internal values, same goes for "setting the values"

Is "One" is the ID of the option for your VMO dropdown or a label?

Alex

Ah, I assumed '=' meant label and ':' meant ID as the input parameter. 

Got it working. As always, thanks a ton Alex for your invaluable support.

Not quite, the '=' is used when you set the values

While the ':' is used in filtering - separating field name (or expression) from field value (or expression)

 

Hope it helps

Alex

Like davin likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events