In Catalog item if i select something then some of the variables should be read only

kranthi2
Tera Expert

Hi,

In Catalog item if i select something then some of the variables should be read only.

 

If i select anything from Registered vehicles then Brand, place of registration, plate number, vehicle color is auto populating.

Here i want to put all those fields Read only if and only if i select Registered vehicles drop down is something.

 

kranthi2_0-1703701918563.png

Please explain me how we can achieve the same.

 

Thanks,

 

1 ACCEPTED SOLUTION

Aniket Chavan
Tera Sage
Tera Sage

Hello @kranthi2 

Yes you can achieve this by using simple UI policy in which you just have to add the condition with is not empty and in the UI policy action add your all the variables and make them as read only true and that's it, this will result in your exact requirement i.e. all your variables will be read only only when any value has been selected in "Registered vehicles" variables and not for other conditions.

Please refer the below image:

AniketChavan_0-1703703849070.png

AniketChavan_1-1703703905510.png

 

Let me know your views on this and Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks,

Aniket

 

 

View solution in original post

3 REPLIES 3

Aniket Chavan
Tera Sage
Tera Sage

Hello @kranthi2 

Yes you can achieve this by using simple UI policy in which you just have to add the condition with is not empty and in the UI policy action add your all the variables and make them as read only true and that's it, this will result in your exact requirement i.e. all your variables will be read only only when any value has been selected in "Registered vehicles" variables and not for other conditions.

Please refer the below image:

AniketChavan_0-1703703849070.png

AniketChavan_1-1703703905510.png

 

Let me know your views on this and Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks,

Aniket

 

 

Musab Rasheed
Tera Sage
Tera Sage

If your other data is populating through client script then you can add code to make fields read only in client script itself. if data is populating from lookup concept then writing UI policy is good. both method are simple and straight forward. I insist you to dig into this and do it by yourself.

Please hit like and mark my response as correct if that helps
Regards,
Musab

@kranthi2 If my response has helped you in any way please mark my response as accepted as well.

Please hit like and mark my response as correct if that helps
Regards,
Musab