Hiiii I need som code help. :)
When i Edit a form, i want som code to check a value in the form. If the value is the same as a value ind the users meta key, every thing is fine. If not - hide the form. and write "Permission denied" Field id = 220 [user_meta key=firmacvr]
One way is to create a hidden field & set its default value to [user_meta key=firmacvr]. Then use jQuery to compare the values and hide/show as you desire. One issue would be that if the value of firmacvr is going to change at some point, then you'll have to get the user meta value from jQuery because the default value only works for the initial creation of the form.
Please login or Register to submit your answer