Hi,
I have a simple choice field called Type of Funding Request. I'm writing some JS to show/hide another field ("Category") based on the value in Type of funding request. I wrote the code below just to test the onDisplaySectionChnage JS function, but I'm noticing the alert popup doesn't fire when changing this drop-down field's value.
When I initially load the page, the alert works fine and shows the default value. When I change this value and tab to other fields it does not produce the alert. Are there other settings in the form builder or portal mgmt app I should look at?
$(document).ready(function () {
$("#cr92d_TypeofFundingRequest").change(onDisplaySectionChange);
onDisplaySectionChange();
});
function onDisplaySectionChange() {
var varFunding = $('#cr92d_TypeofFundingRequest').val()
alert(varFunding)
}
Form Options JS
Resolved! Hopefully this helps someone else as I struggled for hours. You must use the 'Logical Name' of the field which should be all lower case. I was using the 'Schema Name' in my example above.