Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to add tool tip for a widget button

akshay parekar1
Tera Contributor

Hey everyone, i need a help

on my widget there is modal window and a submit button also (attaching screenshot)

Now, if someone tries to click submit without filling some text in additional comments, there i want tootip like "Comments are Mandatory".

  i'm sharing my html please help me out with this ASAP

 

 

 

<div class="modal-header" style="background-color: #232222;font-size:24px;">
   
<label for="exampleFormControlInput1" class="form-label" style="font-color:white" >Additional Comments</label>
  <button ng-click="closeModal()" class="close">
    <i class="las la-times"></i>
  </button>
</div>

<div>
  <div class="modal-body">
    <div class="form-group full-width" >

<label for="exampleFormControlTextarea1" class="form-label" style="background-color: #ffffff" ><h4>* Please provide additional comments for cancelling the approval request</h4></label>

<div class="mb-3">

<textarea class="form-control c.commentvalue" ng-model="c.commentvalue" field = "c.commentvalue" display-field="'c.commentvalue'" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>


    </div>
    </div>
</div>

<div class="modal-footer">
 

  <button class="btn btn-danger pull-left"
          ng-click="c.closeModal()">
    Cancel
  </button>

<button class="btn btn-primary pull-left"
          ng-click="c.onSubmitcomment(c.commentvalue)"
          ng-disabled="!c.commentvalue">
    Submit



  </button>
</div>

 

 

2 REPLIES 2

akshay parekar1
Tera Contributor

Also what i have to write in client script for this?

 

akshay parekar1
Tera Contributor

Hey, is this question even visible to anyone

I posted earlier they also don't got any replies