laguna92651

Parameter Passing Problem With Radio Button

Discussion created by laguna92651 on Jan 20, 2018
Latest reply on Jan 21, 2018 by philmodjunk

I have a very simple sort script that I call from a radio button. The radio button has three selections; Contact, Account and Date. I pass the radio button field to the sort script from OnObjectModify. For some reason the first time I click the radio button it passes the last selected state, if I click the desired selection a second time it passes the correct value. I don't know what I am missing here?

 

Set Variable[$sort1; Value:Get ( ScriptParameter )]

If[$sort1 = "Account"]
Sort Records[Keep records in sorted order; Specified Sort Order:T022a_all_contactS_ACCOUNTS::Account;ascending]
[Restore; No dialog]

Else If[$sort1 = "Contact"]
Sort Records[Keep records in sorted order; Specified Sort Order:T022_ALL_CONTACTS::Full Name;ascending]
[Restore; No dialog]

Else If[$sort1 = "Date"]
Sort Records[Keep records in sorted order; Specified Sort Order:T022b_all_contacts_ALL_TASKS::Task Due Date;ascending]
[Restore; No dialog]

End If

Go to Record/Request/Page[First]

Outcomes