I have a Single Record Update data page, whit a autosubmit.
Depending on the value I want the destination after record update to a specific page.
Something like this.
<script>
var machtiging = "[@authfield:GEBRUIKERS_Machtiging]";
if(machtiging=="Yes")
if(document.getElementById("caspioform"))
{
document.getElementById("caspioform").style.display = 'none';
setTimeout('document.forms["caspioform"].submit()',1000);
window.location="[@app:logout]";
}
else
if(document.getElementById("caspioform"))
{
document.getElementById("caspioform").style.display = 'none';
setTimeout('document.forms["caspioform"].submit()',1000); }
window.location="[@app:horseplanner_home]";
}
</script>
This is not good ,i now. but for the idea.
does anyone have an idea