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

How to set default values in request form on dependent of another field

BHANU TEJA
Contributor
October 31, 2023

For Example I have 2 fields Location and states

In Location I have to dropdown values India and Ireland and states T.S and Dublin.

On selection of India the default value must be T.S and vise versa

 

How can we achieve this in Forms JSM

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2023

Hi @BHANU TEJA 

You can achieve this with an automation rule

Trigger is when value changes.

Condition us an if/else condition and add in the IF, location equals India than add an edit action where you set the field states on T.S.

In the els do the same actions, but with the other values.

I wouldn't create a vice versa as this can cause a loop. set a workflow condition on all states where only the field "state" can be updated on the actor of the automation rule.

BHANU TEJA
Contributor
October 31, 2023

Hi @Marc - Devoteam 

The requirement is it should reflect in user request form for the customer

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2023

Hi @BHANU TEJA 

You could do something like this.

Screenshot 2023-10-31 at 16.14.09.png

The location dropdown in the form has the 2 choices you mentioned and then for each add a section based upon the input Ierland or India, then be default the State dropdown is filled in the form

BHANU TEJA
Contributor
October 31, 2023

Hi @Marc - Devoteam 

 

The field in the form are linked to fields in the jsm so we cannot achieve using above method

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events