-
- 128 Posts
I have the following form and for some reason, i can NOT get the usergroups setting to set in the database.
[[!Register?
&submitVar=`registerbtn`
&usergroups=`6`
&activation=`0`
&activationResourceId=`11`
&submittedResourceId=`12`
&activationEmailTpl=`lgnActivateEmailTpl`
&activationEmailSubject=`Thanks for Registering!`
&usernameField=`email`
&useExtended=`1`
]]
Form:
<form id="AddEditProfile" class="form" action="[[~[[*id]]]]" method="post">
<fieldset>
<div class="Row">
<label for="fullname">Full Name
<span class="error [[!if? &subject=`[[+error.fullname]]` &operator=`empty` &then=`hidden`]]">[[+error.fullname]]</span>
</label>
<input type="text" name="fullname:required" id="fullname" value="[[+fullname]]" />
</div>
<div class="Row">
<label for="email">Email
<span class="error [[!if? &subject=`[[+error.email]]` &operator=`empty` &then=`hidden`]]">[[+error.email]]</span>
</label>
<input type="text" name="email:email" id="email" value="[[+email]]" />
</div>
<div class="Row">
<label for="company">Company <span class="error hidden">[[+error.company]]</span></label>
<input type="text" name="company" id="company" value="[[+company]]" />
</div>
<div class="Row">
<label for="password">Password
<span class="error [[!if? &subject=`[[+error.password]]` &operator=`empty` &then=`hidden`]]">[[+error.password]]</span>
</label>
<input type="password" name="password:required:minLength=6" id="password" value="[[+password]]" />
</div>
<div class="Row">
<label for="password_confirm">Confirm Password
<span class="error [[!if? &subject=`[[+error.password_confirm]]` &operator=`empty` &then=`hidden`]]">[[+error.password_confirm]]</span>
</label>
<input type="password" name="password_confirm:password_confirm=`password`" id="password_confirm" value="[[+password_confirm]]" />
</div>
<div class="addEditButton">
<input type="submit" name="registerbtn" value="Register" />
</div>
</fieldset>
</form>
I see in the log that usergroups IS passing the number 6, AND if i set it to "Members" it passing that too... but when i look in the database, the user_groups setting isn't being set at all, it's 0.
Any thoughts?
I LOVE MODX! | greyskymedia.com