You are viewing limited content. For full access, please sign in.

Question

Question

Any way to install moment.js in the new forms designer in Cloud?

asked on November 9, 2022

Now that javascript is available, we are looking to use some of the moment.js library features to control the calendar element, but not sure how to install.

0 0

Answer

SELECTED ANSWER
replied on November 10, 2022

I'm guessing you'd get a CDN link for moment.js and paste it into the "Import JavaScript here" box.

1 0
replied on November 14, 2022

Oh you mean the External tab, that worked! Very cool!

1 0
replied on November 14, 2022

Do note per the project maintainers Moment.js is "done/legacy" and you might want to use one of their suggested successor libraries for new projects. It's not going anywhere any time soon and is used by millions of projects, but something to consider. Some of the successor libraries are notably smaller which can help page load times. See:

https://terodox.tech/migrating-away-from-momentjs-part1/

1 0
replied on November 14, 2022

Got it. Just this ability to load all these libraries is really helpful! This allows us to use jquery again.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.