Hello,
I want to hide several fields via an onchange event for a yes/no field on a CRM form.
The field names all have the same prefix so is there any way I can use a wildcard to set the visibility of all the fields based on their fieldname.
So instead of individually:
Xrm.Page.ui.controls.get("new_sg2_text1").setVisible(true);
Xrm.Page.ui.controls.get("new_sg2_text2").setVisible(true);
Xrm.Page.ui.controls.get("new_sg2_text3").setVisible(true);
I would like something like
Xrm.Page.ui.controls.get("new_sg2_%").setVisible(true);
Many thanks for any suggestions.
- Seamus
*This post is locked for comments