reset/unlink client field (field a) when advicor (field b) is removed
Hi everyone,
I have a form with two relationship fields in Ninox:
- Advisor (1:N): Allows selecting one or more advisors.
- Client (N:1): Allows selecting a client who is being advised by the chosen advisor(s).
The Problem:
The "Client" field should only be editable if at least one advisor is selected (I’ve already handled this with write permissions). However, if a client is selected and then the advisor is unlinked/removed, the client remains in the field. Instead, I want the "Client" field to automatically reset (become empty) as soon as no advisor is selected.
I tried using an if statement in a formula field and/or as trigger (tried table advisor and the field client, both didn't work):
if (Advisor = null and Client != null) then
Client := null
end
How can I automatically clear the "Client" field when no advisor is selected? Is there a way to achieve this with a trigger, formula, or script?
3 replies
-
Don't use Client:=null but use Client:=0
Content aside
- 3 days agoLast active
- 3Replies
- 31Views
-
3
Following
