AnsweredAssumed Answered

Custom dialogue: Value?

Question asked by tays01s on Jun 21, 2016
Latest reply on Jun 22, 2016 by tays01s

I have an 'OnPanelSwitch' trigger to stay on a certain tab is 2 values aren't given:

Commit Records/Requests [ No dialog ]

Show Custom Dialog [ Title: "Complete Calc info"; Message: "You must complete critical fields before leaving this tab:"&¶ & If(IsEmpty(Calc::cm);"cm";"") &¶ &
If(IsEmpty(Calc::kg);"kg";""); Default Button: “Complete tab”, Commit: “Yes”; Button 2: “Switch tab”, Commit: “Yes” ]

Exit Script [ Result: "Switch tab" ]
If [ GetValue ( Get ( TriggerCurrentPanel );2 ) ="tab_calcs" and

( IsEmpty(Calc_n::cm) or IsEmpty(Calc_n::kg) )]

End If

 

Because the user could get stuck on this tab when they've not complete vital info elsewhere, I'd like them to have the option of overriding with a 'Switch tab' in the Custom dialogue. However, this does appear to be capable of Exiting the script, so the 'If' lines of the script come into play.

 

Can I use Custom Dialogue to set the value of 'Exit Script'?

Outcomes