<div dir="ltr"><div><div>What I do is,<br></div>========= Perl=========<br>get '/edit/:id' => sub {<br>template 'customer/edit', { create=>0,<br>customer => rset('Customer')->search_rs({customerid=>route_parameters->get('id')})<br>};<br>};<br></div>============HTML====================<br><div><div>....<br><% cus = customer.next %><br><%IF create ==1%><br><form action="/edit/<%cus.customerid%>" method="post"><br><%ELSE%><br><form action="/edit/<%cus.customerid%>/<%inv.invid%>" method="put"><br><%END%><br>....<br><div class="col-2"><input name="datecreated" type="date" class="form-control" id="datecreated" aria-describedby="dateHelp" value="<%date.format(inv.datecreated)%>">  </div><br>....<br></div><div>====================END=====================<br><br></div><div>Will this help in your situation?<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 28, 2021 at 10:09 PM Morse, Richard E.,MGH <<a href="mailto:REMORSE@mgh.harvard.edu">REMORSE@mgh.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks, but for a variety of reasons, I'm trying to minimize the amount of client-side Javascript. (Among other reasons, I may still need to support IE8 (or, rather, IE11 in IE8 compatibility mode).)<br>
<br>
Ricky<br>
<br>
________________________________________<br>
From: dancer-users <<a href="mailto:dancer-users-bounces@lists.preshweb.co.uk" target="_blank">dancer-users-bounces@lists.preshweb.co.uk</a>> on behalf of Andrew Solomon <<a href="mailto:andrew@geekuni.com" target="_blank">andrew@geekuni.com</a>><br>
Sent: Thursday, January 28, 2021 11:07 AM<br>
To: Perl Dancer users mailing list<br>
Subject: Re: [dancer-users] Form modules?<br>
<br>
I would approach this by:<br>
* making sure all the html fields have an id<br>
* on page load, use jQuery to do a REST call back to the server to work out what to stick in these fields<br>
<br>
Does that make sense?<br>
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 <a href="http://www.massgeneralbrigham.org/complianceline" rel="noreferrer" target="_blank">http://www.massgeneralbrigham.org/complianceline</a> . 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.<br>
<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@lists.preshweb.co.uk" target="_blank">dancer-users@lists.preshweb.co.uk</a><br>
<a href="https://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">https://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><a href="https://www.facebook.com/vijayvithal.jahagirdar" target="_blank">https://www.facebook.com/vijayvithal.jahagirdar</a><br><a href="https://twitter.com/jahagirdar_vs" target="_blank">https://twitter.com/jahagirdar_vs</a><br><a href="http://democracies-janitor.blogspot.in/" target="_blank">http://democracies-janitor.blogspot.in/</a><br></div>