Hello all,
I'm trying to show a couple of fields on a entity form on Dynamics 365 portals based on the onChange event of a OptionSet field, the fields are hide on the dynamics 365 form, but on the portal entity form i paste the following JQuery to try to achieve the goal, but no luck yet... T_T
$(document).ready(function() {
$("#fieldOnChange").change(onStatusChange);
$("#fieldOnChange").change();
});
function onStatusChange(){
if ($('#fieldOnChange').val() == "1")
{
$('#FieldtoShow_1').show();
$('#FieldtoShow_2').show();
}else if($('#fieldOnChange').val() == "2")
{
$('#FieldtoShow_1').show();
$('#FieldtoShow_2').hide();
}else if($('#fieldOnChange').val() == "0")
{
$('#FieldtoShow_1').hide();
$('#FieldtoShow_2').hide();
}
}
Im not sure if i'm missing something else, but i tried pasting it on the Dynamics 365 form and add it to the field just like a normal JS, i tried to pas te it on the entity form of the portal and also on the web page.... and nothing happens! :( any clue for me to reach this out?
In advance so many thanks, Muchas Gracias!