Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can we validate date and show custom messages using java script?

 Hi,


Can we validate date field in RTC and show custom message based through Java script. It is achievable using plugins but I was wondering if we can get it done through javascripts?

 

0 votes



One answer

Permanent link

The Script-based Validator is supposed to support "any attribute type" so it could be your only choice if JavaScript is required.

0 votes

Comments

The JavaScript attribute customization ( https://jazz.net/library/article/1003 ) API basically only really supports text based items. String or enumerations https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript . Complex items are generally not claimed to be supported and you have mixed results if you try. E.g. for contributors. 


The JavaScript API however also allows the conversion of timestamps so you can use JavaScript against the text representation.  

Valication can show validation warnings or errors in the UI.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Oct 11 '17, 9:07 a.m.

Question was seen: 1,399 times

Last updated: Oct 12 '17, 4:19 a.m.

Confirmation Cancel Confirm