Questions tagged [html-formhandler]

HTML::FormHandler is an HTML form handling class written in Moose.

HTML::FormHandler is an HTML form handling class written in .

Reference :

38 questions
4
votes
4 answers

what is onChange={(e) => setName(e.target.value)}? in React mean

I am new to React;I am learning about React Form. I understand the code but I do not really understand the concept behind and why we use this line " onChange={(e) => setName(e.target.value)}". Thank you for your help. They used this example: import…
Active Coder
  • 73
  • 1
  • 2
  • 8
2
votes
0 answers

I can't validate min time in html form (datetime-local)

I try to validate min and max time in datetlime-local html form. min date and max date are works fine. but time is not working.
2
votes
0 answers

Text::Xslate returning incorrect value for function call

I'm using Text::Xslate with HTML::FormHandler (HTML::FormHandler is actually used behind the scenes by CatalystX::SimpleLogin, in case that helps). I'm using Text::Xslate's TTerse syntax and trying to show the errors in my template like so: [% FOR…
srchulo
  • 5,143
  • 4
  • 43
  • 72
1
vote
2 answers

I'm trying to take inputs from an HTML form and pass it to a JavaScript function

I created an if statement to test if either field is blank and to make sure the values of the form are making it to the function. I've tried a few variations to the HTML and JavaScript on either ends of the process but still nothing happens. I've…
1
vote
3 answers

How to make a live preview of input element's in JavaScript?

I want to make a live preview of input elements in HTML with the JavaScript. Like when use will write something in the field, it will automatically print the text under the field. So how can I make it? I have tried to make it in different ways. But…
DevR
  • 29
  • 5
1
vote
1 answer

How to force user to enter a valid email and not let them click on submit button otherwise?

I am curious how I can force the user to enter a valid email address and if it is not valid don't show the submit button as active? here's the current code I have. Currently if the email is invalid, it shows a red border but still the user can click…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
1
vote
1 answer

Dynamic Country - city select on form

newbie alert, I am really enjoying perl Catalyst, however, i have googled and cant find a solution for Country - City dynamic selection. when i select a country from the dropdown, i would like the cities to change to that coutries cities only. How…
Njugu
  • 81
  • 3
1
vote
3 answers

prevent double submitting into database

Good day all, I have a question I looked it up everywhere and I still seem stuck If I submit a form via post -> variable -> database and then redirect to another page using header(location:page.php); in the time it takes to redirect and I click…
Christiaan
  • 59
  • 7
1
vote
1 answer

HTML::FormHandler with DBIC update extra database column before update_model

I'm using HTML::FormHandler (with DBIC) and I want to update a field on my model that depends on another field submitted on the form. HTML::FormHandler has a section on handling extra database fields, and it says when a row is created to do this in…
srchulo
  • 5,143
  • 4
  • 43
  • 72
1
vote
1 answer

How to render individual fields with HTML::FormHandler

I am creating a form and am using HTML::FormHandler. I have a select field similar to the following: has_field color => ( type => 'Select', default => 'green', ); sub options_color { return [[ qw(red green blue)]]; } In my template if I use…
killianjackson
  • 115
  • 1
  • 6
1
vote
1 answer

HTML::FormHandler field validation based on other field's check'd state

I am developing a Perl/Catalyst web app using HTML::FormHandler for forms. I am trying to do a conditional validation on a field if a checkbox is checked. The code below is from a Role I created for my form to use. has_field…
1
vote
1 answer

HTML::FormHandler submit button

I have several HTML::FormHandler forms working nicely, the only issue is the submit button, which does not change its text/label. Here is (part of) my form, the labels for the other fields all work as expected. has_field username => ( type =>…
bytepusher
  • 1,568
  • 10
  • 19
1
vote
1 answer

HTML::FormHandler access to form field

Is there any way to access the value of form field 'wklloc_id' in the form field options method of field 'prg_id'? My Form contains (amongst others) these fields: has_field 'wklloc_id' => ( type => 'Select', label => 'Winkel(locatie)' ); has_field…
1
vote
1 answer

Catalyst Framework HTML::Formhandler shows vadiate errors, when using HTML GET to Access the Site

I have an HTML::Formhandler Form on my Catalyst Framework. The Problem is, that I get an error-message in the Form, when I load the Form-Site with an HTML GET-Requelst. has_field 'name' => (type => 'Text', required => 1); So if I load the Site via:…
1
vote
1 answer

Catalyst HTML::FormHandler DateTime

Hi I'm using the HTML::FormHandler in my Catalyst Project. I Want to you use the input field type DateTime-local as you can see here: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_type_datetime-local Can anybody tell me, if it is…
bor32
  • 41
  • 6
1
2 3