avatar image
1
Pagebuilder: Interaction onNoResults on Data Container not working
By Created , last editted

I have a page that uses input parameter: order_identifier (order_id)

I have a data container for order object where order.id = order_identifier

When not object is found because of the use of a wrong order_identifier I want to either show an alert or redirect to a 404 page.

When using the wrong order_identifier the response in the inspector is:

200 success:
{"data":{"oneOrder":null}}

On the data container I tried an interaction: OnNoResults then redirect to 404

This is not working. I always am redirected to the 404 page also when data is present

I also tried: OnNoResults show Alert

This is not working. The alert (by default) hidden is niet shown when the result of oneOrder = null

Question: How is this use case possible in the page builder?



I have a page that uses input parameter: order_identifier (order_id)

I have a data container for order object where order.id = order_identifier

When not object is found because of the use of a wrong order_identifier I want to either show an alert or redirect to a 404 page.

When using the wrong order_identifier the response in the inspector is:

200 success:
{"data":{"oneOrder":null}}

On the data container I tried an interaction: OnNoResults then redirect to 404

This is not working. I always am redirected to the 404 page also when data is present

I also tried: OnNoResults show Alert

This is not working. The alert (by default) hidden is niet shown when the result of oneOrder = null

Question: How is this use case possible in the page builder?


Answers
Sort by:

Please login to reply to the topic.