I have a Zoho Creator form, called Issues (Rskrg_Iss), that deals with risk assessment. It has two drop downs: Likelihood (IssLklhood), which estimates the probability of an event occurring and Consequence (IssCons), which estimates the likely outcome should the event occur. Given Consequence and Likelihood, I want to auto populate the Risk field (IssRisk). The Risk associated with different Likelihood and Consequence combinations are stored in Risk Report (Rskrg_Rsk).
I initially started thinking about this as a dual field relate, which is not something currently supported in Zoho Creator. Nonetheless, it can be achieved relatively simply:
In the Issues form, configure the Likelihood field’s on ‘On User input‘ action to fetch a record from the Risk Report. Then assign the RskDescr value from the returned record to the Issues‘ form IssRisk field. The script ends up looking something like this:
Rskrg_RskData = Rskrg_Rsk[RskLklhood == input.IssLklhood && RskCons == input.IssCons]; input.IssRisk = Rskrg_RskData.RskDescr;
For more information on Zoho Creators Deluge Scripting language and how to fetch records see Zoho Creator’s Deluge Reference Guide.