Opened 4 years ago

Closed 4 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

No image "Capture.jpg" attached to Ticket #1

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)

Capture.jpg (51.8 KB) - added by Jrusse12 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by Jrusse12

Attachment: Capture.jpg added

comment:1 in reply to:  description Changed 4 years ago by Jrusse12

Replying to Jrusse12:

No image "Capture.jpg" attached to Ticket #1

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.aaa.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.

comment:2 Changed 4 years ago by Jrusse12

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 4 years ago by bill

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.