cancel
Showing results for 
Search instead for 
Did you mean: 

validation code required

Former Member
0 Kudos

Hi,

I have created an application which has 2 input fields : period_from & period_to and a Search button.

on clicking the search button a table with the required fields corresponding to the values selected gets displayed.

My requirement is to limit the length of the 2 input fields: period_from & period_to TO 7digits and that the user has to enter the period in "MM.YYYY" format. In case the length exceeds or the format is incorrect , an error message should get displayed.

Can anyone help me with the validation code??

Regards,

Anurupa

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

When ever you create thses fields we can options/properties for the lenght of the field (both input and ouput length) there we can restritct the number of characters.

At run time on this element, we can use method related to that UI emelent. check the parent UI element class or object from that we can validate.

Reward if helpful.

Best Wishes,

Chandralekha