DWextranet_AccessUserPasswordErrorField1

Version: - string  

Summary

Returns a style value that can be used to hide or show an error message for short passwords.

Settings

The value is generated automatically based on the Min. number of characters field in the the extended extranet security settings.
(Management settings - Control Panel - Modules - User Management - Password security - Extranet - Min. number of characters).

Remarks

Returns an empty string ("") if a new password is shorter than the required minimum, otherwise "None" is returned. The tag can be used for New password prompts.
The value should be used in a style="DISPLAY: " attribute like this:

<div id="DWextranet_ErrorCode1" Style="display:@GetValue("DWextranet_AccessUserPasswordErrorField1");">The Password requires minimum @GetValue("DWextranet_AccessUserPasswordErrorFieldData1") characters</div>

Examples

Outputting the template tag

@GetString("DWextranet_AccessUserPasswordErrorField1")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("DWextranet_AccessUserPasswordErrorField1"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("DWextranet_AccessUserPasswordErrorField1"); }

Outputting the template tag

<!--@DWextranet_AccessUserPasswordErrorField1-->

Check if string has a value

<!--@If Defined(@DWextranet_AccessUserPasswordErrorField1)--> Let's output this tag here: <strong><!--@DWextranet_AccessUserPasswordErrorField1--></strong> <!--@EndIf(@DWextranet_AccessUserPasswordErrorField1)-->