cancel
Showing results for 
Search instead for 
Did you mean: 

InputField Property - status = required

Former Member
0 Kudos

Hello,

I want to make some of the inputfield mandatory for the user, so I selected "required" in the propery status, after that, it do nothing. Also, I have 3 buttons.

The question is, How can I make this works when I clic in one of this buttons? How can I do the validation when the user clic some of this buttons? The button have to be related with some kind of validation function?

Thanks & Regards

SU

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a action for the button:go to Layout - > and select the button properties - > action:ClickButton.

In the implementation tab:

OnActionClickButton(..)

{

String strIfld = wdContext.currentContextElement().getInputFld();

if(strIfld !== null & strIfld.length() == 0)

{

wdComponentAPI().getMessageManager().reportException("Please entre the filed");

}

else{ {Write your code} }

}

Regards,

Lavanya.G

Edited by: Lavanya Goriga on Jun 25, 2010 6:33 AM