Hi Wahaj
I'm a little unsure as to the content of the IF statement. Do I only insert the value that will be selected from the OptionSet as I have it below or do I need the additional items you've given?
OptionSet = new_opportunityproductoffering
OptionSetValue = Hedge Fund Administration
************************************
<--My Scrip-->
function HideFields(executionContext)
{
const formContext = executionContext.getFormContext();
const "Hedge Fund Administration" = formContext.getAttribute("new_opportunityproductoffering").getValue();
if ("Hedge Fund Administration")
{
formContext.getAttribute("new_someotherfield1").setVisible(false);
formContext.getAttribute("new_someotherfield2").setVisible(false);
formContext.getAttribute("new_someotherfield3").setVisible(false);
}
else
{
formContext.getAttribute("new_someotherfield1").setVisible(true);
formContext.getAttribute("new_someotherfield2").setVisible(true);
formContext.getAttribute("new_someotherfield3").setVisible(true);
}
}