cancel
Showing results for 
Search instead for 
Did you mean: 

Validate required input field

Former Member
0 Kudos

Hi masters.

I created several input fields with required option on status attribute. The label now have the * indicating that field is required.

But when the action is triggered no messages are displayed. Do I need to do anything else in order to display the standard message for the required fields ?

Does exist required standard message or I need to create it ?

Edited by: Michel Dambros Figueiredo - BR on Nov 18, 2008 9:02 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

....

Edited by: Chintal Virani on Nov 18, 2008 9:06 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Check for the null value for the context attribute associated with the field ...then use the following code:

if(wdccontext.currentcontextelement.getattributevalue == null || wdccontext.currentcontextelement.getattributevalue.equalsignorecase(""))

{

IWDMessageManager m = wdthis.wdgetApi().getcomponent.getMessageManager();

m.reportexception("<Fill in text you want>",true);

}

Hope it helps.

Shikhil

Former Member
0 Kudos

Hi,

Yes you need to check programatically for the null values in your code and give appropriate message to the user.

Regards,

Murtuza