Change field type based on the field value

tsai25044
Tera Contributor

Hi @Ankur Bawiskar ,

 

I have a small requirement to fulfill previously your solutions helped me a lot .

There are two fields working and  Name . In working there are two values A and B , if user selects "A"  Name field  should be reference field of current users and if user selects "B" the name field should be free text .

Can you please help me with this requirement.

 

Thanks & Regards,

Tsai.

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@tsai25044 

not possible, you cannot change field type dynamically

the only way is to have one more extra field which is of string type and then show/hide it based on value from 1st field

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@tsai25044 

not possible, you cannot change field type dynamically

the only way is to have one more extra field which is of string type and then show/hide it based on value from 1st field

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader