Developer forum

Forum » Templates » User management - create user from frontend

User management - create user from frontend


Reply
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.

Replies

 
Nicolai Høeg Pedersen
Reply
This can only be done by altering the template according to the custom fields and use that in combination with translate tags.
 
Reply
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.
 
Nicolai Høeg Pedersen
Reply
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.
 
Reply
 OK. So today there is no way for me to tell a user in swedish that the username is already taken?


 
Reply

You could use If Defined on the input error message...
 
If Defined(UserManagement:User.UserName.Input.Error)

/Morten

 
Reply
 Thanks. Why didn't I think of that?   :)

 

You must be logged in to post in the forum