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

How to fill a read only field in a Form depending on the value of another select field?

Günter Halmans April 11, 2024

Hi all,

I would like to add a field in a JSM form that presents additional information to the user depending of the value of another (select) field. 

Example:

1. Field A off the form is a select field (one selection) with a list of applications, e.g Outlook, PowerPoint, Excel

2. Field B should be a read only field which is filled by the system in case the user has selected a value in Field A:

  • Field A = Outlook --> Field B = "Managed by Team MSO"
  • Field A = PowerPoint --> Field B = "Managed by the Team MSP"
  • Field A = Excel --> Field B = "Managed by the Team MSE, please get in contact with ABC"

In reality I the basis for A and B are objects from  Asset Management.

Up to now I see only the possibility to hide/or show a field depending on the value of another field - but then the depending field can be used to enter data - that is not what I intend in this case.

Any idea?

Thanks in advance,

Best regards,

Günter

1 answer

0 votes
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 11, 2024

Hi @Günter Halmans ,

By default you will not be able to display read-only fields in the portal.

This this field B only visible for informational purposes ?

Since you already have Field A setup as an Asset, can you not just add the value of B as an attribute of the object in field A.

Then, in the configuration of your Asset Custom Field of field A, you can add this attribute to the "Display and search across these attributes in the custom field" setting, and it will be displayed in Field A.

 

Screenshot 2024-04-11 at 11.30.02.png

 

Best regards,

Kris

Günter Halmans April 15, 2024

Hi Kris,

thank you for your support. 

I conducted some different alternatives to follow your proposal, but unfortunately  without success. The configuration of the corresponding customfield looks like shown in the enclosed screenshot. The information is correctly shown in the detailed view, but not with regard the forms.2024-04-15_13-37.png

Any idea why?

Best regards,

Günter

Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2024

Hi @Günter Halmans ,

It looks like Jira doesn't support the extra information in an Asset field if the field is inside a form.

Do you have the possibility to use the field outside of the form (in the Request Type directly) ?

If not, your other option might be to use different "Sections" in your form and show/hide them based on the selected value of Field A. But this only seems feasable if you don't have to many options in field A.

 

Best regards,

kris

Günter Halmans April 16, 2024

Hi Kris,

thanks for your proposal, but using the field outside the form doesn't work either. 

Best regards,

Günter

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