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):
0