Can anyone helo me with a on load redirect ??
I have try to redirect if a single query server connect is empty. I have tried using a flow with autorun but cant get this work. Any recommendation.
<script is="dmx-flow" id="redirect" type="text/dmx-flow" autorun="true">{
condition: {
outputType: "boolean",
if: "{{hotelInfo.data.hotelInfo.!hasKey('idHotel')}}",
then: {
steps: {
run: {
name: "reditect",
outputType: "text",
action: "{{browsercontrol.goto('/')}}"
}
}
}
}
}</script>
Length option is not available for a single query.