url checking

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

url checking

blabla
Hi, i am trying to do some checking on the url for some pages that can be only be load when a certain condition is met. Am able to do it using the ev:event="xforms-ready" but i wan to know if there is any other way to do it as i do not wish to add the code to every pages.

what i wish to do is to do a checking on the url when the page load so that the page will not load when users enter the url manually or they load the page from bookmark. the page does not require users login to load.

any suggestion is appreciated.

Thanks,
Chris
Reply | Threaded
Open this post in threaded view
|

Re: url checking

Alessandro  Vernet
Administrator
Hi Chris,

You can define model-level logic that is shared across several forms with the oxf.fr.detail.model.custom property. If you can write the logic you're talking about in XForms and run it on xforms-ready (or xforms-model-construct-done), then this should do exactly what you are looking for:

https://github.com/orbeon/orbeon-forms/wiki/Form-Runner:-Custom-Model-Logic

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet