Hi,
I am trying to create validation onLoad that if a certain required field has a value, then hide it. I am using the following code to see if the field has a value:
var productInterestValue = formContext.getAttribute("znl_productinterest").getValue;
However, when I log the variable however it displays:
getValue(){const e="ClientApi.XrmEntityAttributeOptionSet.getValue";try{s.a.instance.reportCall(e);const t=this.getValueInternal(),n=Object(D.g)(t),r=Object(f.a)(n)?Object(D.f)(t,this.getAttributeType(),0):n;return s.a.instance.reportSuccess(e),r}catch(t){const n=v.a.getInstance().getEventParameters(this.contextToken);throw n.push({name:"attributeName",value:this.getName()}),v.a.getInstance().reportFailure(e,t,null,n),t}}
I'm pretty new to dynamics, so any help would be appreciated!
Thanks,
Joe