Web Connection
Tutorial - Step 7 - Duplicate Error Alert
Gravatar is a globally recognized avatar based on your email address. Tutorial - Step 7 - Duplicate Error Alert
  Kevin R Hunt
  All
  Mar 11, 2020 @ 06:02am

Hi,

Working through the Tutorial, after implementing the error alert code, I'm getting to warning signs at the top, for both the Valid Save and the Fix Error conditions as shown below:

This is the code at the top of the EditCustomer.wp web page, found immediately above the FORM div.

            <!-- Conditionally display an error message  -->
            <% if !Empty(pcErrorMsg) %>
                <div class="alert alert-warning">
                    <i class="fa fa-warning error"></i>
                    <%= HtmlAlert(pcErrorMsg,"warning",,,.T.) %>
                </div>
            <% endif %>

This uses the alternate Alert process as outlined in the Step 7 Help, specifically the third code snippet entry.

© 1996-2024