Question
cognizant technology solutions
IN
Last activity: 27 Dec 2016 1:08 EST
I have a requirement in which user can select only future dates not present and past dates.Can anyone help me to implement this.I have used edit validate rule but dont know how to customize its error message ?
I have a requirement in which user can select only future dates not present and past dates.Can anyone help me to implement this.I have used edit validate rule but dont know how to customize its error message ?
Also i want to call one section on click of icon but icon and section needs to be called is in different section.I used local action but it doesnt show the section properly.
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
cognizant technology solutions
IN
Help
Pegasystems Inc.
IN
What is the validate rule that you are using. If you are using IsFutureDate rule for the property then there is a pyMessageLabel "Enter a Valid Future Date" which is availble. So you can save it to your ruleset and then modify as per requirement.
Pegasystems Inc.
IN
Hi Vaibhav,
You can use the DateTime control with the below presentation options:
During runtime, only the future date will be displayed in the dropdown. You can specify the display range years accordingly.
I hope this helps you.
Thank you.
TCS
US
I have tried same way, but no luck.
Do we need to change any settings along with this?
Pegasystems Inc.
IN
Hi Venkata,
The display range (Previous and Next years) should be applied when the display mode for DateTime is selected as dropdown.
No additional settings are required for them to be applied.
Thank you.
ANZ
IN
If it is a datetime component then there is a property "MinDate" which only allow to select what we set.
this is how o set it DateInputCtrl.MinDate = DateTime.Now;
Areteans Technologies
AU
You can call this edit validate rule in Validate rule where you can customize the message.
Virtusa
IN
You can define a validate rule for this date property and reference the edit validate rule and then you can give custom error messsages
-
Saikiran Ulkundakar
CoForge Tech
US
if in any way, you are using any activity that runs on submit, may be a post flow action activity, you can use method "property-validate" and provide the required property and customized message.
This will supersede the default message. This is available in Pega 7.2, not sure if it is there in lower version of pega as well.
Cognizant Technology Solutions
US
I am not seeing the range option in version 7.1.9