Conditional Redirect
Intro
Conditional redirection is based on the chosen Data Location's Collection Item Value Field to enhance user experience. This dynamic feature directs users to different pages or sections depending on specific data conditions, optimizing navigation based on their input or selection.
In this video tutorial you will understand how to conditionally redirect based on the chosen Data Location's Collection Item Value Field Value.
1. Drop a Data Table
Go to Pages. Right click on its Settings and choose the collection to bind.
1.1 Open Data Table Settings
Open the Data Group Settings and choose the collection, field and filter and Save.
2. Create Redirect Event
Create an event to redirect to another page using current row's item ID and collection that is bind with the parent Data Group/Table/List component.
Go to Events and Add Event. Name the event and Create.
Then configure the event by choosing Save Data and Edit.
1.1 Add Event Details
Add the collection and the notification messages.
1.2 Apply Conditional Redirect
Choose Conditional Redirect and Edit.
1.3 Add Event Details
Add the data location, collection and field followed by field value, page, choose Target, path field and collection form.
3. Bind the Event to the Data Group
Open the Data Group Settings and choose the collection and event to bind and then Save.
5. Test the Changes
Go to Preview and add a new record and Submit.
6. First Redirect Action
To redirect to another page using current page's details page, item ID and collection bind to the page.
Go back to the event created previously and in Conditional Redirect update the field value and path field.
7. Test the Changes
Go to Preview and add a new record and Submit.
8. Second Redirect Action
To redirect to anotehr page using newly created or updated item ID using the collection form and collection bind with the Collection Form component.
Go back to the event created previously and in Conditional Redirect update the field value, path field and add Collection Form.
9. Test the Changes
Go to Preview and add a new record and Submit.
Conclusion
One notable benefit of conditional redirection in a web application, based on the chosen Data Location's Collection Item Value Field, is the enhanced user experience through personalized and context-specific navigation.