Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to crate new text field when user select any option from select list while user creating issue?

AKSHAY THAKARE
Contributor
July 19, 2018

Hi,

I want to add such functionality that when user select Any-Other option from the select list then automatically new text field generate where user can write any thing for the text Custom filed.This should be done while user raising the any request.

 

for eg.

product type-     Project 1

                           Project 2

                          Any-Other

 when user select Any -Other  then new text field need be create 

 enter

 

1 answer

1 vote
Alexey Matveev
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.
July 19, 2018

Hello,

You can create a custom field, which must appear if the Any-Other option is chosen. Then you can use the Power Scripts Live Fields or ScriptRunner behaviours to show or hide the field.

AKSHAY THAKARE
Contributor
July 19, 2018

Can you please provide a code or a tutorial which we can follow?

AKSHAY THAKARE
Contributor
July 19, 2018

 

Thanks for the help @Steve Behnke@Alexey Matveev

Alexey Matveev
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.
July 19, 2018

@Steve Behnke gave you a link to the ScriptRunner plugin. Here is a link to Power Scrpts just to expand your choices:

https://confluence.cprime.io/display/TR/Make+a+custom+field+required+based+on+another+custom+field

AKSHAY THAKARE
Contributor
July 20, 2018

Can you please tell me exact process. 

foe eg -

1st should i create text filed with name

2nd - where and how should i write script ?

how i should link the script 

#using script runner

AKSHAY THAKARE
Contributor
July 23, 2018

Can you  provide mi groovy script for above functionality ?

Suggest an answer

Log in or Sign up to answer