Hello, I'd like to know if it's possible to build in a JS script into my confluence page.
I have a 'Run macro' script and it's got a field "Date", it expects a date in this format: DD/mm/YYYY
I wonder how do I embed a JS script so that I don't have to type that date. I'd like to see a small calendar and pick a date by a mouse click.
Any ideas? my_form.png
you said you hava a macro, so what you need is to add a web resource to your plugin -> https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-plugin-module-types/web-resource-module
There you can use the context-mechanism to load the js file dedicated to your macro.
If it's a user macro and you maintain it via the admin console (which I would not recommend), you can just add a script tag to your markup or if you need a library, try a cdn.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs