Server Connect in main layout, On Success I need to call a Page Flow in content page

Server Connect in main layout, On Success I need to call a Page Flow in content page

sc_user_details: main layout
pageflow_user_details: content page

sc_user_details needs to call pageflow_user_details, is this possible? I tried Run Flow but I don't think it did anything

This page flow only exists in one particular page and does actions specific to that page, that's why I didn't put in the main layout together with the sc_user_details

Hi Apple,

You can access a PageFlow on the content page by adding the prefix content. to the PageFlow ID on the content page.

content.flowContentPage.run()

Hm... Right, I was able to run it in the browser console with dmx.parse - is that what you were referring to?

It didn't work in "Run Flow" step in a Server Connect On Success inline flow :frowning:

Do you think it's a bug?

It seems the code is incorrect. It should be in single backticks.

Edit: Instead of Run Flow, use Run and then select the PageFlow.

<dmx-datastore id="datastore1" dmx-on:inserted="run({run:{outputType:'text',action:`content.flowContentPage.run()`}})"></dmx-datastore>
1 Like

Bravo! Interesting to use Run instead of Run Flow

The option Run Flow has never worked for me. I don't know whether it is a bug or it's usage is different to what the name suggests.