How to do onchange on Requestor Portal?
Asked by Mar Angelo L_ Tareno:

Is there possible way to change or add another field depends on choosing on dropdown?

on requestor portal when creating a request.

**Example:**

when I select**Option 1** on drop down, auto add of required fields like text fields or

another dropdown.

like a onchange function.   

there's another option I like to do. like the hidden fields can be show when depends on

selecting in the dropdown.

see on the picture.

![Screenshot 2024-08-27 174120.png](https://community.atlassian.com/t5/image/serverpage/image-id/344033i05DF834C7EFAA62F/image-size/large?v=v2&px=999 "Screenshot 2024-08-27 174120.png")


Answers:
author: John Funk
body: Hi Mar Angelo,

You can do this with the advanced forms also known as Proforma Forms. You create one of those instead of the standard Request Type form.

To create one, go to Project Settings \> Forms

You can get further guidance here:

<https://confluence.atlassian.com/proforma/conditional-logic-and-dynamic-fields-1087520923.html>

comments: author: Mar Angelo L_ Tareno
body: is there possible way to do it free plugin? as I know Proforma need payment to use it.


author: John Funk
body: It is included with Cloud - you should be able to use it now. Just follow my path above.


author: Walter Buggenhout
body: Hi [@Mar Angelo L_ Tareno](/t5/user/viewprofilepage/user-id/5544846),

Yes, if you embed [a form](https://support.atlassian.com/jira-service-management-cloud/docs/use-forms-in-jira-service-management/) on your Request Type form. You can add separate sections on such a form which can be conditionally displayed or hidden based on the selection of another field.

Hope this helps!

comments: author: Mar Angelo L_ Tareno
body: is there a tutorial to do it? when the user selected on option can be show the hidden fields on requestor portal?


author: Walter Buggenhout
body: Everything you need to know is in the documentation link I mentioned above, [@Mar Angelo L_ Tareno](/t5/user/viewprofilepage/user-id/5544846).

For your specific request, you will need to:

1. Create a new Form
2. Add a field to your form where you can select the *CRM Sub category* . Probably a *dropdown* field will be the best option. If you want to save the selection the user makes, link that field to the Jira custom field you have already set up.
3. Below that field, you add a *section* to your form. You give that section a name, e.g. Option 1, and set its visibility to *conditional*and you select when it needs to appear (based on the selected option from the CRM Sub category field).
4. Then you add the field the user needs to fill out.
5. You can even add additional fields here in the same section.
6. Below that field, you add - again - a new section. This marks the end of the section and the start of another part of your form that you can - again - make always visible or only if certain conditions that you control are true.

Repeat steps 2-6 for every option in your list or according to what you need.

[This article from the documentation on creating / editing forms](https://support.atlassian.com/jira-service-management-cloud/docs/create-or-edit-a-form/) is a good starting point to help you get more familiar with how this works. But do take the time to read through all support articles I shared in my initial link. You have a powerful toolset available; investing some time in understanding how it works will prove very valuable, I'm sure ...


Tags: cloud

jira-service-management

jira-service-management-cloud