Hi, how can we set the default value in task, it got be through javascript?
*This post is locked for comments
Hi, how can we set the default value in task, it got be through javascript?
*This post is locked for comments
Did you add getFormType condition?
function defaultDuration()
{
if(Xrm.Page.ui.getFormType() == 1) Xrm.Page.getAttribute("actualdurationminutes").setValue(1440);
}
Thanks Alex,
this will work for every new task, but it still sets the existing task values, when opening the existing task.
This works in the onload:
function defaultDuration()
{
Xrm.Page.getAttribute("actualdurationminutes").setValue(1440);
}
Though you may want to add form type check (so it only works on create):
if(Xrm.Page.ui.getFormType() == 1)
Yes, I can see the problem - it does not work for me either.. maybe a javascript, but I'll need to try.. (it seems to be one of those special controls in Dynamics.. you can actually type in, say, 600.. and you'll get 10 hours.. even though 10 hours is not in the dropdown.. but it's definitely not working with the business rule for some reason)
I am trying to use business rule, but how can I set the default value to "1 Day", it looks like it only accept digits
Hi,
I guess you might try using a business rule, a javascript, or a workflow. Depending on where you need this to work and how complicated the rules are..
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156