You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to make a virtual field required

Summary:

Hi community,

I have the virtual fields ibAssetPkVF and productVF and I would like to make these fields mandatory depending on the value of the Type field. This requirement is in the create work order layout.

I tried to modify the properties directly in the JSON but it does not apply.

"{{ $fields.WoTypeCdMeaning.value() !== 'Install'  ?  {\"ibAssetPkVF\":{\"required\":true,\"colspan\":2}} : null }}",

"{{ $fields.WoTypeCdMeaning.value() === 'Install'  ?  {\"productVF\":{\"required\":true,\"colspan\":2}} : null }}",

How can I apply this rule?

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!