Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
so i have a custom users/register page i allow users to sign up on
How do i specify the their role on this page, ths snippet below doesnt seem to work
Code: Select all
<cms:form masterpage=k_user_template mode='create' enctype='multipart/form-data' method='post' anchor='0' id="signupForm">
<cms:db_persist_form _invalidate_cache='0' k_page_title=frm_user_name  user_access_level="4" />
Hi,

The field name in question is actually 'k_access_level'.
Please try using -
Code: Select all
<cms:db_persist_form _invalidate_cache='0' k_page_title=frm_user_name  k_access_level='4' />

Tip: to know the actual names of the system fields, as recognized by Couch, you may inspect that field in the admin-panel using your browser's dev console - the 'id' of the main div around the field is named after that field.

Hope this helps.
Hi KK,

I tried
Code: Select all
<cms:db_persist_form _invalidate_cache='0' k_page_title=frm_user_name  k_access_level='4' />


But the user created still isn't an authenticated user (special) - level 4, the user created is still an authenticated user - level 2
@bralaryea, this is strange as I tested the code and it is setting the user level to authenticated user (special) - level 4.
If you could PM me your actual template, I'll test it to see what is going wrong.
4 posts Page 1 of 1