UserManagement:User.ManageAddresses.MakeDefault.Javascript
Version: - stringSummary
Returns a script with a function that is used to mark an address as default.
<script>function makeDefaultAddress(addressId){document.getElementById('SelectedAddressId').value = addressId;document.getElementById('ManageAddressesFormAction').value = 'MakeDefault';document.getElementById('UserManagementManageAddressesForm').submit();}</script>
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("UserManagement:User.ManageAddresses.MakeDefault.Javascript")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("UserManagement:User.ManageAddresses.MakeDefault.Javascript"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("UserManagement:User.ManageAddresses.MakeDefault.Javascript");
}
Outputting the template tag
<!--@UserManagement:User.ManageAddresses.MakeDefault.Javascript-->
Check if string has a value
<!--@If Defined(@UserManagement:User.ManageAddresses.MakeDefault.Javascript)-->
Let's output this tag here: <strong><!--@UserManagement:User.ManageAddresses.MakeDefault.Javascript--></strong>
<!--@EndIf(@UserManagement:User.ManageAddresses.MakeDefault.Javascript)-->