KiM
September 20, 2022, 11:23am
1
this is probably goin to be a simple request so here goes.
i have my home page but need to redirect to a terms and conditions page only when the ::terms field doesnt say i agree.
i also want to be able to hide the nav ffrom the terms page so they can only really get there if they havent agreed to the t&c…
delfs
September 20, 2022, 12:43pm
2
You can do this a few ways, firstly how are you storing the terms and conditions value?
it could be a cookie if you don’t have auth enabled for example.
Then in your on-form load you can check if the cookie is set and if not, show a full-screen modal.
You can also just conditionally hide the pages contents,
KiM
September 21, 2022, 1:18am
3
storing the “i agree” in forms::terms on the fm side
delfs
September 21, 2022, 2:07am
4
if you are storing it in FileMaker then you will need to have an onFormRequest
and simply show a modal or redirect based on that value you find in the onFormRequest script.
You will have to think about how your UX will be first.
KiM
September 22, 2022, 11:37am
5
Yep i had worked out the on form request but how do i redirect the web page in a filemaker script?
KiM
September 22, 2022, 11:52am
6
ok so ive got to use the “Path” action…
working out how to use the path action is my next bit