I have a main form (Deployments) and a subform (Incidents).
On my subform I am hiding a field on load (Report_Address). I have a checkbox (Discrepancy) with a workflow to show the Report_Address field when the Discrepancy field is checked “Different Report Address”. This works just fine if I create a record through the subform.
Discrepancy as "Discrepancy"
{
type = form
form = Incidents
on add or edit
{
actions
{
on load
(
if(input.Discrepancy = "Different Report Address")
{
show Report_Address;
}
else if(!input.Discrepancy.contains("Different Report Address"))
{
hide Report_Address;
})}
actions
{
on user input of Discrepancy
(
if(input.Discrepancy = "Different Report Address")
{
show Report_Address;
}
else if(!input.Discrepancy.contains("Different Report Address"))
{
hide Report_Address;
})}}}
I want the same to occur when adding a record through the main form. I can successfully hide the Report_Address field on load. I referred to a number of previous posts, but I can not seem to figure out how to show the Report_Address field on user input of the Discrepancy field. Can this only be accomplished through user input of the main form?
Incident_Discrepancy as "Incident_Discrepancy"
{
type = form
form = Deployment
status = inactive
on add or edit
{
actions
{
on load
(
hide Incidents.Report_Address;
)}}}