how to dynamically change service catalog's description and picture

Gulfam Shafee3
Tera Expert

Is there any way to change the description and picture when select from a "Select Box"? Thanks.

1 ACCEPTED SOLUTION

Vishal Birajdar
Giga Sage

Hi @Gulfam Shafee3 

 

We can't change the description & picture of catalog item dynamically as it will modify the database & affect for all.

 

We also have similar requirement , we have implemented with alternate solution to it :

Instead of changing the description  we have created Rich text label variable for each choices and shown it to end user.

 

Step 1 : Created select box 

Choices - 1.choice_1

                 2.choice_2

 

Step 2 : Create rich text label for each choice and added image & description into it.

 

VishalBirajdar_3-1696399839150.png

=============================================

 

VishalBirajdar_4-1696399874163.png

 

 

 

Step 3 : Written UI policy to hide & show rich text label depending upon select choices 

 

Output : 

 

VishalBirajdar_1-1696399740663.png

 

 

VishalBirajdar_0-1696399711937.png

 

VishalBirajdar_2-1696399779041.png

 

Hope this helps...!!!

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

1 REPLY 1

Vishal Birajdar
Giga Sage

Hi @Gulfam Shafee3 

 

We can't change the description & picture of catalog item dynamically as it will modify the database & affect for all.

 

We also have similar requirement , we have implemented with alternate solution to it :

Instead of changing the description  we have created Rich text label variable for each choices and shown it to end user.

 

Step 1 : Created select box 

Choices - 1.choice_1

                 2.choice_2

 

Step 2 : Create rich text label for each choice and added image & description into it.

 

VishalBirajdar_3-1696399839150.png

=============================================

 

VishalBirajdar_4-1696399874163.png

 

 

 

Step 3 : Written UI policy to hide & show rich text label depending upon select choices 

 

Output : 

 

VishalBirajdar_1-1696399740663.png

 

 

VishalBirajdar_0-1696399711937.png

 

VishalBirajdar_2-1696399779041.png

 

Hope this helps...!!!

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates