37 questions
0
votes
1
answer
43
views
How to send image file from form to mongoDB using flask and pymongo
from flask import Flask, render_template, url_for, request, redirect
from pymongo import MongoClient
from PIL import Image
import io
from matplotlib import pyplot as plt
app = Flask(__name__)
client =...
0
votes
1
answer
469
views
How does one POST an AWS S3 hosted contact form using javascript to an AWS api gateway endpoint for processing on a nodejs labmbda function
In advance, thank you for reading this long question. To start with I have this static AWS S3 hosted HTML form that I'd like to use to gather a requester's contact information/question so I can ...
0
votes
1
answer
3k
views
React Hook Form Controller
I am using react hook form controller on material UI textField component where the type i am giving as file.
<Controller
name={name}
control={control}
render={({ ...
8
votes
7
answers
68k
views
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)}&...
0
votes
0
answers
40
views
MultiValueDictKeyError at /form 'name1'
I am new at django
I was designing my own website to store value of form in the database
please help
I can't able to overcome the error
the error is multivaluedicterror
from django.shortcuts import ...
0
votes
1
answer
885
views
Bootstrap Table sorting removes dynamic class assigned to a cell
I have a bootstrap table that looks like this -
$('#colorChangeForm').submit(function () {
changeBackground();
return false;
});
function changeBackground() {
var noOfProposals = document....
1
vote
1
answer
669
views
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, ...
-1
votes
1
answer
284
views
PHP / HTML checkbox button [duplicate]
I have a GPA calculator form, and when a user enters their information, I want it to stay populated on the screen.
E-mail: <input type="text" size="35" name="email" value="<?php echo $...
0
votes
0
answers
27
views
Applying hidden form value to identify which functions to run on a from handling page
I'm trying to carry a value from the form into my 'Formhandler' document but I can't get it to work. I tried adding a value (Register) to my html tag but that did not work. I know that it's my "...
1
vote
3
answers
1k
views
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....
1
vote
1
answer
111
views
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 {
...
2
votes
1
answer
86
views
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 ...
0
votes
0
answers
74
views
HTML form submit to unexpected URL
I had facing a problem and found out a hot fix for it. But i do not know how the workflow of submit HTML form and i want to know why it happens. Following is my situation:
if i have a IMG wih src ...
1
vote
1
answer
145
views
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 ...
0
votes
1
answer
329
views
typo3 extension formhandler pregmatch
I am trying to validate a iban no for germany, but I cannot get pregMatch to work with formhandler. I cannot find a mistake and compared it with the formhandler documentation, but nothing helped. ...
0
votes
1
answer
75
views
TYPO3 - How to add fieldname to Formhandler errorListTemplate.singleWrap typoscript
How to add fieldname to Formhandler errorListTemplate.singleWrap typoscript?
I have the following Typoscript :
plugin.Tx_Formhandler.settings {
singleErrorTemplate {
totalWrap = |
...
-2
votes
1
answer
860
views
HTML::Formhandler error: '...' is not a valid value
using HTML::Formhandler in Catalyst I defined a form based on a database table (item_class). What the form does is set the first three select lists based on the contents of several tables (other than ...
1
vote
1
answer
96
views
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=...
1
vote
0
answers
53
views
HTML::FormHandler sort_column for HTML::FormHandler::Field::Select
The documentation for HTML::FormHandler::Select says that the sort_column option Sets or returns the column or arrayref of columns used in the foreign class for sorting the options labels. I've tried ...