Azure B2C TrustFrameworkLocalization.xml and passing the attribute name on custom policy for errors - azure-active-directory

I'm trying to pass the display name of all my fields to any of the inputs that fail when a user tries to sign up, but fails to for missing an input box?
The only Microsofts docs I could find was to just add the {0} and it would display on over the input. But it just puts the actual the actual text of '{0}'
<LocalizedString ElementType="UxElement" StringId="required_field">This
information is required {0} . </LocalizedString>
Am I missing a setting to activate this to pass the display names to the screen?
Thanks,
Adam

It’s not possible to configure this, other than using custom JS.

Related

How do I prevent a user from using special characters in display name on DNN

How do I prevent a user from using special characters in display name on DNN?
I have managed to get it right for username by using the below, but it doesn't work, even though DNN help text indicates that this field is meant to apply to Username and display name.
In the Site Settings, tab "User Account Settings" you can find a setting "User Name Validation". There you can add a validation expression. I think this is a regex.
Happy DNNing!
Michael

Show and hide server-side errors in AngularJS 1.3+ forms

I'm using the Angular framework with Angular Material controls in my recent application. I'm looking for a good solution for the following problem:
A form form with an input field named nickname is shown to the user. After the user has chosen a nickname and submitted the form, the server checks whether the nickname has already been taken. In that case, it returns an error to the Angular client.
To show an appropriate error to the user, the code then calls form.nickname.$setValidity('nicknameTaken', true). The new ngMessages module is used to display the error to the user. Further form.$isInvalid is used to disable the form controls to prevent the user from resubmitting the invalid nickname.
My problem is now the following: I'd like to have the error nicknameTaken automatically being removed as soon as the user begins to edit the form fields again. What is a good way to do this? Is there a predefined route to go when it comes to server-side validation errors of this kind? (Note that I am not asking for asynchronous validation because I only want to contact my server when the form is actually being submitted.)
I would write a normal validator directive instead. Something like
<input blacklist="takenNickNames" .../>
This directive would simply add a validator to the input, and this validator would make the input invalid if the model value is contained inside the given takenNickNames array (and valid if it's not present).
The takenNickNames array would be empty initially. When the form is submitted and the error comes back, the controller would add the invalid nick name to the array.
So, every time the user would enter something, the validator would be triggered, and would set the field valid or not, based on the taken nicknames stored in the array.
Here is a working example.

Iframe content not able to save in module params Joomla

I am using Joomla3 with tinymce editor. I have created one module and adding one params in textarea
I am adding iframe code
in text area
but it's not saving. If i am save normal text string then it's saving
Please help me
I believe you need to add a filter to your xml code.
such as:
filter="RAW" or, probably more appropriately, filter="HTML"
This will keep Joomla from cleaning your code. There are a number of filters available to XML fields when creating modules. You can examine the code here: https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/filter/input.php#L167 to see the exact list.
What user group is the account you are using a member of? Super Users and Administrator group types should have no filtering set by default but it sounds like you might need to edit those settings.
From the main menu:
System > Global Configuration > Text Filters (tab)
You will see all the available user groups for you website. The group your user belongs to should have a Filter Type of No Filtering. Another important note is its better to add the user account to a group with the permissions then to arbitrarily adding it to a group type typically reserved for registrants, guests or low-level editing.

How to auto populate email address in text field using extjs 4.1?

I have done application using Extjs4.1, it contains feature login page. for email address and password field using text box field. Here i need to add feature, auto populating of email address who recently visited. In other application like java etc it is default property populates email address in text box field. Can any tell me is it possible or not in extjs? How to achieve this one ? great appreciate. Thank you.
You need to config more as part this feature, You can able to refer below link, which contain demo.
http://dev.sencha.com/deploy/ext-4.0.0/examples/form/forum-search.html
I hope this will help.
Thanks.

Create Hidden Fields in User Profile

I've successfully created a custom user field using the code referenced here.
I'd like the field to be formatted "Hidden" per the Account Settings page. I've set the type to hidden on the field instance but it's not hiding. Any idea how to program this field as hidden in my module?
You can achieve that using Field Permissions module.
You can configure the field appearance the way you want.
Hope that helps... Muhammad.
You can use hidden field module

Resources