- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 12:14 AM
Hi,
I would like add a button using UI action and it should be visible only when end date is Today+10 days.
í�n Detail:
When ever end date is great than 10 days by Today's date.i want to show button on form.
So for this i have written a condition in UI action as below
current.end_date==gs.now+10
Can anyone help me how to write this validation in UI action condition.
Thanks & Regards,
Ajitha I
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 12:26 AM
Hi Ajitha
Try below code. I think this should work. Also, please confirm if the UI action is in global scope or any other scope.If global then below code should work fine. But I am not sure If the below code will work in scoped application. You can try.
current.end_date <= gs.daysAgo(10)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 12:18 AM
Hi Ajitha,
Plesae create Script Include and Call that script include in UI action condition..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 03:05 AM
Plesae create Script Include and Call that script include in UI action condition..
That's an overkill. It simply needs the correct criteria in the "Condition" field to determine if it should be shown or not.
"Simplicity -- the art of maximizing the amount of work not done -- is essential" - from http://agilemanifesto.org/principles.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 12:26 AM
Hi Ajitha
Try below code. I think this should work. Also, please confirm if the UI action is in global scope or any other scope.If global then below code should work fine. But I am not sure If the below code will work in scoped application. You can try.
current.end_date <= gs.daysAgo(10)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 02:39 AM
Thanks it is working