Posted on 18/08/2016 14:55:42
Yeah that is the only problem, i am running on a copy of our site but on my localhost, so very sorry about that :(
This is 2 sections of the form, the first section is a standard field that works perfectly and the second section is my custom code.
I added the Salutation field in the extranet konfiguration panel. it is of type text has a name of Salutation and a system name of AccessUser_Salutation
<div class="col-md-6 col-xs-12">
<div class="form-group">
<label class="control-label">@Translate("Company", "Company"):</label>
<div class="input-group">
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-building"></i></span>
@GetString("UserManagement:User.Company.Input").Replace("input ", "input class=\"form-control\" style=\"width: 100%\" required=\"required\"")
</div>
</div>
</div>
What i'm trying to do
<div class="col-md-6 col-xs-12">
<div class="form-group">
<label class="control-label">@Translate("Salutation", "Salutation"):</label>
<div class="input-group">
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-smile-o"></i></span>
@GetString("@UserManagement:User.AccessUser_Salutation.Input").Replace("input ", "input class=\"form-control\" style=\"width: 100%\" required=\"required\"")
<input class="form-control" style="width: 100%" type="text" required="required" id="UserManagement_Form_AccessUser_@GetString("UserManagement:User.AccessUser_Salutation.Name")" name="UserManagement_Form_AccessUser_@GetString("UserManagement:User.AccessUser_Salutation.Name")" />
</div>
</div>
</div>
in the last one i try 2 different things
1. @GetString("@UserManagement:User.AccessUser_Salutation.Input").Replace("input ", "input class=\"form-control\" style=\"width: 100%\" required=\"required\"")
which return nothing at all.
2. <input class="form-control" style="width: 100%" type="text" required="required" id="UserManagement_Form_AccessUser_@GetString("UserManagement:User.AccessUser_Salutation.Name")" name="UserManagement_Form_AccessUser_@GetString("UserManagement:User.AccessUser_Salutation.Name")" />
which creates a tag exactley like the standard fields, but the information entered into it is not added to the users created profile.
Hope this makes more sense