Hi,
i'm trying to pass an argument to a custom hook snippet from the page where the form sits. In this case, i need to pass the user id logged in my page (i get all the user's fields from the Profile snippet) to my custom hook (called
newsp_create). I tried like so but i think it is not the right way:
[[!FormIt?
&hooks=`newsp_create,redirect`
&redirectTo=`6`
&validate=`name:required,
tag:required:stripTags
&userid=[[+id]]
]]
i use $userid inside my
newsp_create snippet for referring to that &userid, but the variable seems empty. Any suggestion?
[ed. note: mau1989 last edited this post 12 years, 2 months ago.]