[dancer-users] Form modules?
andrew at geekuni.com
Thu Jan 28 16:07:26 EST 2021
I would approach this by:
* making sure all the html fields have an id
* on page load, use jQuery to do a REST call back to the server to work out
what to stick in these fields
Does that make sense?
On Thu, Jan 28, 2021 at 3:29 PM Morse, Richard E.,MGH <
REMORSE at mgh.harvard.edu> wrote:
> Hi! I'm sorry I wasn't clear...
> I'm working on a system to replace a Drupal-based form. I need to have
> some people go in and partially fill out the form (or, rather, fill out a
> subset of the possible variables), and then be able to present the form
> again to other people, who will fill out more of the form — or possibly
> edit the existing answers while talking with the original submitters. They
> also need to be able to complete the form in multiple sittings, if
> In addition, the labels of a bunch of the checkboxes and selects will need
> to be used in an alternate view of the information in the completed form,
> so what particular values represent needs to be available to the program in
> a useful way, not tied up in the HTML.
> I've played around a bit with the three templating systems included in
> Dancer2 (Simple, Tiny, Toolkit), and although I can sort of see how to make
> things work for 'input type="text"' and textareas, creating the checkbox
> groups, radio groups, and select/multi-select widgets seems either
> impossible (in Simple and Tiny), or really, really, verbose (in Toolkit).
> In a recent project, where I was working directly with Plack, I used
> HTML::FillInForm. But that was a *much* smaller form, and didn't have as
> much HTML5 stuff in it — I'm worried about it not understanding newer form
> widgets, and also it seems counter productive to generate HTML, then
> reparse the entire output to modify it to add the values, and then
> regenerate the string. (Also, I'm not 100% clear how to integrate
> HTML::FillInForm with Dancer2, but that's mostly probably because I haven't
> tried yet.)
> In CGI (yes, I know, but bear with me...) there were affordance functions
> to generate HTML widgets with existing data. CGI being now deprecated, I
> was wondering what sorts of things people used for the same purpose now?
> Or if there is something like the Drupal "forms" system, that would also
> be useful?
> From: dancer-users <dancer-users-bounces at lists.preshweb.co.uk> on behalf
> of Andrew Solomon <andrew at geekuni.com>
> Sent: Wednesday, January 27, 2021 6:30 PM
> To: Perl Dancer users mailing list
> Subject: Re: [dancer-users] Form modules?
> Hi Ricky,
> I read your question four times and failed to understand it :-)
> Maybe an example would help?
> On Wed, Jan 27, 2021 at 5:18 PM Morse, Richard E.,MGH <
> REMORSE at mgh.harvard.edu<mailto:REMORSE at mgh.harvard.edu>> wrote:
> Hi! The various templating systems don't seem to be very useful for
> dealing with generating HTML forms that already have data in them,
> especially if some of the form needs to be generated programatically. What
> do people use for this instead?
> The information in this e-mail is intended only for the person to whom it
> is addressed. If you believe this e-mail was sent to you in error and the
> e-mail contains patient information, please contact the Mass General
> Brigham Compliance HelpLine at
> http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent
> to you in error but does not contain patient information, please contact
> the sender and properly dispose of the e-mail.
> dancer-users mailing list
> dancer-users at lists.preshweb.co.uk
Director, Geekuni <https://geekuni.com/>
P: +44 7931 946 062
E: andrew at geekuni.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dancer-users