Q: I want the solution to automatically open page1.php at True and page2.php at False.
How do I do that?
Greetings,
Trolle
Use a flow and a condition inside it.
If true redirect to page 1, else redirect to page 2.
<div id="conditional_check_returntrue" is="dmx-if" dmx-bind:condition="var1.value == query.name">
{{browser1.goto('page1.php') }}
</div>
<div id="conditional_check_returnfalse" is="dmx-if" dmx-bind:condition="var1.value != query.name">
{{browser1.goto('page2.php') }}
</div>
or with flow as Teodor pointed out
Hi Mozzi
Thanks for your reply! But it is not working… Is > correct after the dmx-bind:condition…?
Thanks,
Trolle
As explained above, use flows for this. Flows are useful exactly in cases like yours!
Hi Teodor,
I’m quite sure that would be the best solution. However, I have a very tight schedule!!
Do you have a link to material I can read, compared to the current Wappler version.
Thanks,
Trolle
Perfect!
How do I insert Avaiable Actions in Actions Editor… and is it needed?
(At present it is not working…but hoping. (Both for my contract and my client!!)
All best,
Trolle
You need to add a page flow to do what i described above.
Sorry, can you tell me what is wrong?
{{browser1.goto(‘page1.php’)}} or {{browser1.goto(‘page2.php’)}} is not executed. I only see the page with the page flow.
Thansk,
Trolle
So how and when do you run the flow?
I want to run page flow when the page opens. The page should therefore not have content, but only be used to proceed to page1 or page2.
All best,
Trolle
Ok so have you checked flow auto run option?
Yes. You can see it at one of the pics.
Do you see any errors in the browser console when the browsrer goto event is used? Is the browser component added on your page?
It is working, after I added:
Thanks Teoder!.. all best to you.