Hi! In customizing doctypes, how do I make a field mandatory if another field is not blank? Is there a script I can type here in Mandatory Depends On (JS)? The code below doesn’t seem to work.
Field Name: completed_by
Hi! In customizing doctypes, how do I make a field mandatory if another field is not blank? Is there a script I can type here in Mandatory Depends On (JS)? The code below doesn’t seem to work.
Field Name: completed_by
You can try this Condition
eval: !doc.completed_by
Thank You!
Unfortunately, this doesn’t work
Unfortunately this doesn’t work as well
It should only be mandatory if another field is not empty