web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Firing Jscript automatically on multipe forms

(0) ShareShare
ReportReport
Posted on by

Hi there!

Is there a way to fire Jscript on multiple forms on a daily basis without loading each individually?

Info: The JScript is currently onChange on a calcuated field that updates every day automatically (the NOW() function). The calculated field is hidden from the form. The calculated field does update automatically on all forms.

Thanks in advance for your inputs

Best,

Kasper

*This post is locked for comments

I have the same question (0)
  • ManirajKV Profile Picture
    1,477 on at

    Hi,

    It will not.  Please go through below link.

    http://stackoverflow.com/questions/735462/call-javascript-onchange-event-by-programatically-changing-textbox-value

    Can you elaborate your requirement so the we could suggest a solution for this. 

  • kahansen Profile Picture
    on at

    I am creating a membership database and need to know the age of each member, and it should be updated every day automatically for each record.

    This is what I've done so far:

    I use the DIFFINDAYS function to find how many days old the member is (diffindays(birthday, NOW()). Then I divide it by 365,xxxxx to find the age in years. However, I need many decimals on the result for it to be precise enough in years (one day is only 0,000xxxx . I then run a Jscript that rounds the number down to the nearest whole number and puts it in a new field.

    I cannot use a similar function to Math.Floor() in DCRM. DCRM will only round to the nearest whole number and thus provide me with a wrong age.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans