I want mandatory asterisk(*) to placeholder for three fields.

I tried syncfusion  mandatory asterisk(*) to placeholder but it is not working.



Attachment: Asterisk_dd4249bf.zip

2 Replies

VJ Vinitha Jeyakumar Syncfusion Team June 22, 2022 02:25 PM UTC

Hi Supriya,


Currently, we are checking your reported query. we will update you the further details on tomorrow 23/06/2022.

Regards,
Vinitha


VJ Vinitha Jeyakumar Syncfusion Team June 23, 2022 10:27 AM UTC

Hi Supriya,


We have created a sample as per your requirement to show asterisk symbol for placeholder. please check the code and sample below,

Code snippet:
<form id="reactive" [formGroup]="form">
        <label class="required">File Upload:</label>
        <ejs-uploader
          #defaultupload
          id="defaultfileupload"
          [dropArea]="dropElement"
        ></ejs-uploader>

        <ejs-dropdownlist
          id="games"
          #sample
          [dataSource]="sportsData"
          [fields]="fields"
          [placeholder]="waterMark"
          [popupHeight]="height"
          floatLabelType="Always"
        ></ejs-dropdownlist>

        <ejs-textbox
          placeholder="Identifier"
          name="Identifier"
          field="Identifier"
          floatLabelType="Always"
        >
        </ejs-textbox>
        <div class="form-group template">
          <div class="submitBtn">
            <button class="submit-btn e-btn" id="submit-btn" (click)="Submit()">
              Submit
            </button>
            <div class="desc"></div>
          </div>
        </div>
      </form>

.e-float-input.e-control-wrapper .e-float-text::after {
  content'*';
  colorred;
}






Regards,
Vinitha



Loader.
Up arrow icon