Dynamics 365- Show or hide fields based on Multi-Select Option Set

Dynamics 365- Show or hide fields based on Multi-Select Option Set

Taha Gain

2 года назад

5,266 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

gangadevi b
gangadevi b - 15.02.2023 14:24

Hi sir , this was helpful, but i have one doubt, if we select two options in multiselectoptionset field, i want to show one field is mandatory , for that how to write the conditon

Ответить
Sr shaan
Sr shaan - 19.11.2022 21:38

Assalam alikum Taha please help me with this code = Create a text field named Name of Parent Account. Write a JS function which would trigger on change of the parent Create a whole number field with minimum value 0 and max value 100 named as Rating Percentage. Create another option set field named as "Rating Category" with values Hot, Warm, and Cold. Write a JS function on save of the form. This function should check if a value is present in Rating Percentage field, if yes, then below logic should be applied:
If the Rating percentage is between 0 to 40 then set Rating category to cold
If the Rating percentage is between 41 to 70 then set Rating category to warm
If the Rating percentage is between 71 to 100 then set Rating category to hot

If no value is selected, the stop the form from getting saved and show an error message, please provide a value in Rating Percentage field.

Ответить
Arslan Arif
Arslan Arif - 25.10.2022 22:44

Thank You

Ответить
Chicken nuggies
Chicken nuggies - 05.08.2022 10:03

Thanks for the help! You teach well and make it easy to follow! :D

Ответить