question

vaibhavsaini avatar image
vaibhavsaini asked vaibhavsaini posted

How to make a field as required(*)

Hi,

 

I am not able to figure out how to make a field as required(*) with a message.

I have uploaded two screen shot,the first one is mine and later is required.

 

Any suggestion would be helpful

iTestsdk
prob1.JPG (14.7 KiB)
prob2.JPG (15.7 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
AmeyaB avatar image
AmeyaB answered AmeyaB posted

In the PropertyGet annotation, set "mandatory" attribute to  "true":

 

@PropertyGet(name = "chassisIP", label = "Chassis IP", mandatory = true)
public String getChassisIP() {
    return chassisIP;
}

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.