Hi,
We use InformationUser.cshtml as the template of one of the steps of the Shopping cart app. The version is DW 9.15.3 and Swift 1.16.0.
In that template, the visibility of the navigation buttons depends on the non-emptyness condition of some fields (Address, Zip and City). See code below.
This way, the buttons are sometimes displayed and sometimes not. This is confusing, as not even the "Go to previous" button is displayed so the user is stucked at the page.
What is the purpose of this condition? Is this a bug?
List<string> addressList = new List<string>()
if (!string.IsNullOrEmpty(GetString("UserManagement:User.Address")))
{
addressList.Add(GetString("UserManagement:User.Address"));
}
if (!string.IsNullOrEmpty(GetString("UserManagement:User.Zip")))
{
addressList.Add(GetString("UserManagement:User.Zip"));
}
if (!string.IsNullOrEmpty(GetString("UserManagement:User.City")))
{
addressList.Add(GetString("UserManagement:User.City"));
}
string addressString = (string.Join(",", addressList.Select(x => x.ToString()).ToArray()));
...
@if (!string.IsNullOrWhiteSpace(addressString))
{
@RenderStepsNavigation()
}