With the new user management i have trouble setting up the following in the create user form that i use so that the user can create a user from frontend:
- How can i translate the validation text
- How can i set up custom fields so that they are required
- How can i set validation alert text on custom fields.
Developer forum
E-mail notifications
User management - create user from frontend
Posted on 15/03/2011 12:26:31
Replies
Nicolai Høeg Pedersen
Posted on 15/03/2011 18:29:59
This can only be done by altering the template according to the custom fields and use that in combination with translate tags.
Posted on 15/03/2011 18:45:08
I cant see how this should be don.
The validation error text is not accessible and i cannot see how to make a custom field required in the template.
Template is attached.
The validation error text is not accessible and i cannot see how to make a custom field required in the template.
Template is attached.
Nicolai Høeg Pedersen
Posted on 16/03/2011 14:00:42
You will have to do a javascript that does that.
Check if document.getElementById("fieldname").value.length>0
Only option. But I know we have it as a feature request to be able to do server side validation on custom fields.
Check if document.getElementById("fieldname").value.length>0
Only option. But I know we have it as a feature request to be able to do server side validation on custom fields.
Posted on 16/03/2011 15:20:37
OK. So today there is no way for me to tell a user in swedish that the username is already taken?
Posted on 16/03/2011 16:03:32
You could use If Defined on the input error message...
If Defined(UserManagement:User.UserName.Input.Error)
/Morten
Posted on 16/03/2011 16:38:14
Thanks. Why didn't I think of that? :)
You must be logged in to post in the forum