Opened 7 years ago
Closed 7 years ago
#18679 closed defect (invalid)
Tooltip & CheckedMultiSelect
Reported by: | Jrusse12 | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit - Form | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I'm using the CheckedMultiSelect? and checking the whether there are any checkboxes checked and if not display error message. The 2 pieces of code below are nearly identical but the results are completely different.
This One displays as expected
this.aaa.watch('value', function(_, newValue, oldValue){ if(newValue.length === 0){ this.set('state', 'Error'); if(self.bbb.checked){ this.displayMessage(this.getErrorMessage()); } } else { this.set('state', ''); } });
This one displays the tool tip along the left side wall of the form
if(this.aaa.value.length === 0){ this.aaa.set('state', 'Error'); this.aaa.displayMessage(this.countriesAccountsIn.getErrorMessage()); }
I believe the issue may lie in tooltip. I programmed the tooltip message in multiple different dojo methods such as the one above as well as doing new Tooltip and Tooltip.show all with the same result.
One more thing I'd like to add as a suggestion that I would feel very helpful to me as a developer and from a usability stand point. Would be to add the same sort of error logic that is implemented in text box where if CheckedMultiSelect? state is 'Error' then highlight the outer box red.
Attachments (1)
Change History (4)
Changed 7 years ago by
Attachment: | Capture.jpg added |
---|
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Besides my last comment which is still something I'd like to see; please close the rest of this defect. I have resolved my own issue. "One more thing I'd like to add as a suggestion that I would feel very helpful to me as a developer and from a usability stand point. Would be to add the same sort of error logic that is implemented in text box where if CheckedMultiSelect? state is 'Error' then highlight the outer box red."
comment:3 Changed 7 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
OK, I'll close this then. I'm not sure what your last comment means. I guess you are talking about changing the style of the tooltip based on whether it is displaying a ValidationTextBox? error vs. just a prompt. If so, you can file that as an enhancment ticket. But be sure to use the summary field to write a summary, rather than just a noun.
Replying to Jrusse12: