@willvin i only have very basic knowledge of php, now i know the code wont work in javascript. thanks
the page i try to set variable and run if/else command is a role base dashboard, it do not have a page for custom editing, how to do it in this case?
here is what i am trying to do, i have dashboard for user role = agency... when the agency user login he will see an embaded iframe dashboard by google datastudio.
so i want to get the user agency name get_active_user('agency'); if agency = A, then i set the iframe url belong to A if agency = B, then i sent iframe url for B....
this way the user will only see his own data.
the page event function only have even for before and after ADD, but dont have a page ON LOAD option.
Hi, i am looking for a way to redirect to an external url after user submited a form, but it do not work by just input the url in the "redirect after add"