Hello,
I am having an issue showing/hiding a field based on the selection. I have a field name "decd_architectural" with just a Yes/No option. If yes is selected, i wanted the "decd_architecturaldatereviewed" to show, else it should be hidden.
I wrote this simple JS below but its not quite working the way I want it. If i toggle "yes", then the field appears but if i switch it back to "No", then it still remains.
function showHideFields(executionContext) {
if(Xrm.Page.getAttribute("decd_architectural").getValue() == "No") {
Xrm.Page.getControl("decd_architecturaldatereviewed").setVisible(false);
}
else {
Xrm.Page.getControl("decd_architecturaldatereviewed").setVisible(true);
}
}

Report
All responses (
Answers (