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,455,327
Community Members
 
Community Events
175
Community Groups

How do I automatically populate a read only field when another field is empty

I am creating a form and I need to conditionally switch a set value on a field if another field is empty.

2 answers

@Whenrick Rodney 

What is your configuration for the "ConfiForm Rules for Definition" macro?

May be this one will help - https://wiki.vertuna.com/display/TEST/Form+with+default+values+set+by+Field+def+rules+and+by+registration+control

Alex

I have a Read-only field:

The field should populate with "some message" when another field is not empty

Current Macro Setting:

Field Name (or Expression) = Blank

Condition = fieldName:[empty]

Action to execute *= "I'm trying to set the value of a field"

 

What should my Rule Definition Macro look like?

Field name =

Condition =

Action to execute* =

Message to show when validation rule matches =

Validation rule = 

Field name = fieldName

Condition = !fieldName:[empty]

Action to execute* = Set Value

Parameters to set: fieldYouWantToSet=Value

 

Screenshots from the editor (simple form with 2 fields: fieldName and fieldYouWantToSet)

Screenshot 2021-07-27 at 16.45.30.pngScreenshot 2021-07-27 at 16.45.37.pngScreenshot 2021-07-27 at 16.45.43.png

Alex

0 votes

you can use some addons like automation for jira or scriptrunner, maybe issue edit postfunction is also possible

Thanks, Alexander. I'd like to move in the direction of using the ConfiForm Rules for Definition' Macro. I feel like I'm not constructing my rules correctly..

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events