UserManagement:User.ManageAddresses.UpdateAddress.Javascript
Version: - stringSummary
Returns a script with an update address function similar to this:
<script>function updateAddress(addressId){document.getElementById('SelectedAddressId').value = addressId;document.getElementById('ManageAddressesFormAction').value = 'Update';document.getElementById('UserManagementManageAddressesForm').submit();}</script>
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("UserManagement:User.ManageAddresses.UpdateAddress.Javascript")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("UserManagement:User.ManageAddresses.UpdateAddress.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.UpdateAddress.Javascript");
}
Outputting the template tag
<!--@UserManagement:User.ManageAddresses.UpdateAddress.Javascript-->
Check if string has a value
<!--@If Defined(@UserManagement:User.ManageAddresses.UpdateAddress.Javascript)-->
Let's output this tag here: <strong><!--@UserManagement:User.ManageAddresses.UpdateAddress.Javascript--></strong>
<!--@EndIf(@UserManagement:User.ManageAddresses.UpdateAddress.Javascript)-->