Thanks Vincent, I already created some client side code which creates a UID using a random number generator and a Unix timestamp then pre-populates the modal box before it appears, so that part of the code is already squared away...at this point it's a working solution, I was just trying to figure a way to prevent my users from having to click create, then add when they create a new page (e.g. Create the doc using only one click)...I'm gonna give it a go with more JavaScript tomorrow I think.
> On Jul 17, 2014, at 12:12 AM, "vinc...@massol.net" <vinc...@massol.net> wrote: > > You could also check this extension as a helper, I think it was made for a > similar (if not the same) use case: > http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module > > Thanks > -Vincent > > > > On 17 Jul 2014 at 02:04:55, Jason Clemons > (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote: > > > Thanks for the tips, I'll take a look at that tomorrow. > > > > > On Jul 16, 2014, at 4:25 PM, "Jeremie BOUSQUET" wrote: > > > > > > BTW, an alternative could be to use the modal box [1], to display your > > > form > > > in a modal pop-up (with autofilled field displayed or hidden), then create > > > the page with the name you want upon submit. The server-side saving could > > > be done with either velocity or groovy script. > > > > > > I think there is an extension doing that, but I can't find it ... If > > > someone remembers :) > > > > > > BR, > > > Jeremie > > > > > > [1] > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application > > > > > > > > > 2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET : > > > > > >> Hello, > > >> > > >> You could check the "Self renaming forms" extension [1], that would allow > > >> renaming your page using the uid from the autofilled field. > > >> > > >> [1] > > >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms > > >> > > >> BR, > > >> Jeremie > > >> > > >> > > >> 2014-07-16 23:59 GMT+02:00 Jason Clemons : > > >> > > >> Hello all, > > >>> > > >>> I've created an "App Within Minutes" and written some custom JavaScript > > >>> to autofill the value of the popup dialog box (called "Entry Name") > > >>> with a > > >>> randomly generated UID.. > > >>> > > >>> Essentially what happens is I click the "Add New Entry" button and when > > >>> the dialog pops up, it is autofilled with the UID from my client-side > > >>> code. > > >>> > > >>> I'd like to skip the popup box entirely and just create the page > > >>> directly > > >>> off of the UID so the user is just taken to the form automatically, but > > >>> the > > >>> only thing I can think of is just hiding the dialog and pushing the > > >>> button > > >>> via JavaScript. > > >>> > > >>> Any other suggestions are certainly welcome, thx _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users