avj
Posts: 1
|
Posted: 06/17/2006, 12:51 PM |
|
I've entered the code suggested in a previous topic when redirecting based on a field value:
FYI - Here is a method of directing a user to a different page depending on the value selected in a listbox. (VB.NET)
* Add your record form as normal that contain the listbox you would like to use. Set up you listbox with any values you want.
* Add a After Insert Event to the Record form that contains code simular to the following:
'Record L_FSE_Removal_Requests_tb Event AfterInsert. Action Custom Code @78-73254650
If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Lost" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("Thank_you_C.aspx", "")
Else If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Never Received" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("Thank_you_C.aspx", "")
Else If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Still Working" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("RR_C_5B.aspx", "")
Else If L_FSE_Removal_Requests_tbWhat_Happened.Value = "Sent Back" Then
RedirectUrl = GetL_FSE_Removal_Requests_tbRedirectUrl("RR_C_6.aspx", "")
End If
'End Record L_FSE_Removal_Requests_tb Event AfterInsert. Action Custom Code
However, when using this code when inserting a record, I need to also include a parameter so the desired page only displays the wanted records. The parameter is a field in the record grid, I've tried several methods of attaching the url parameter, but all are providing errors. Could anyone point me in the right direction...
Thanks.
|
|
|
|