Validation Message Inconsistency

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
JefferyD
Posts: 178
Joined: August 31st, 2021, 11:37 am
Contact:

Validation Message Inconsistency

Unread post by JefferyD »

The location of validation messages is inconsistent between different input types. This has made it difficult to style the controls and make them match.

In the below example, textboxes and dropdowns are structured similarly except textboxes have the validation message outside of the control's "label" element while dropdowns have them inside their "label" element.
image.png

In this example, CSS was used to display the description above the inputs, but while textboxes left the validation messages alone, dropdowns suddenly displayed them on top. This issue is on the dropdown.

Alternatively, CSS can target the validation message for the dropdown, but not for textbox controls as it exists next to the textbox control instead of contained inside is. It's especially an issue if other controls are contained in the same table cell like hidden inputs or script tags. This issue is on the textboxes.

Suggestion
Change the textbox to have the label tag and validation message wrapped in a dedicated span, and change the dropdown to match. Maybe even add an attribute dedicated to marking what kind of control it's supposed to be.
image.png
word count: 183

Tags:
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

Re: Validation Message Inconsistency

Unread post by SteveCap »

Task #10575 has been created. This post will be updated when it has been completed.
word count: 15
JustinVanRegenmorter
Posts: 571
Joined: August 26th, 2021, 9:56 am
Contact:

Re: Validation Message Inconsistency

Unread post by JustinVanRegenmorter »

This issue has been resolved as of RunTime Revision 1193.
word count: 10
Post Reply