Issue Question update link. Problem I’m trying to dynamically load multiple instances of the same component, with a new component being added/loaded to the screen when a user submits a form. The idea behind this is that a user can
Continue readingTag: forms
Multiple images in django form with multiupload
Issue I need to add multiple images in django form to one model. I did a research and for form outside of django I try to setup django-multiupload. My models.py: class Profile(models.Model): … … first = models.ImageField(“first”, upload_to=’first’) second =
Continue readingAppending form input value to action url as path
Issue I have a form like this: <form action=”http://localhost/test”> <input type=”text” name=”keywords”> <input type=”submit” value=”Search”> </form> If I type a value, let’s say: ‘hello’ in the text input field and submit the form, the URL looks like: http://localhost/test/?keywords=hello. I want
Continue readingSorting Listview control columns with integer values in Powershell forms
Issue I am trying to sort the column "Size (kb)" in the following Listview. The "Size (kb)" column is getting sorted on basis of the text value which is not the intended result. I am getting correct results for all
Continue readingForm Cloning Unique id
Issue I want to clone a form and not have modification of that form effect the original form. How to I give each instance of the form a unique ID so that the elements are not duplicated? $(document).ready(function() {
Continue readingForm Cloning Unique id
Issue I want to clone a form and not have modification of that form effect the original form. How to I give each instance of the form a unique ID so that the elements are not duplicated? $(document).ready(function() {
Continue readingjquery form cloning
Issue Hello all i have tried cloning a form and it works great. I a dropdownlist in the all the rows in the form and when one of the option is selected i have to create small box appearing right
Continue readingjavascript clone textfield with a string added
Issue I have a form containing 4 text fields. JS is making sure that firstname, lastname and fullname are filled in effectively… but I want the field picture file to contain the fullname value with the extension .jpg. Allowing me
Continue readingngOninit runs only once – form is not updated
Issue I have material sidenav container with material navigation list: <mat-sidenav-container class=”cont”> <mat-sidenav #drawer mode=”side” opened role=”navigation”> <mat-nav-list> <table> <tr *ngFor = “let thing of values”> <td> <button [class.selected]=”thing === selectedThing” (click) = “onSelectedThing(thing)”>{{thing.Date}}</button> </td> </tr> </table> </mat-nav-list> </mat-sidenav> <mat-sidenav-content>
Continue readingtesting angular template driven forms
Issue I am using angular 5, always the .controls property of the form is empty. Not sure why during testing angular doesn’t create the form controls by reading the template file. Template file <form #myForm=”ngForm” novalidate> <input #myCtrl required type=”input”
Continue readingForm validation not working for simple email field
Issue Form validation is not working when i use to validate the email. Here is my code <form id=”forgetForm” class=”form-horizontal” role=”form”> <input placeholder=”Email” class=”text_box1″ type=”email” name=”email” ng-model=”forget.email” required=”required”> <span class=”errorMessage” ng-show=”forgetForm.email.$error.email && !forgetForm.email.$pristine” class=”help-inline”>Email is not valid</span> <span class=”errorMessage” ng-show=”forgetForm.email.$error.required
Continue readingHow to use submit button to search the record in a table?
Issue Here is my index.html page ——index.html——- <!DOCTYPE html> <html> <head> <script data-require=”angular.js@1.4.0-beta.6″ data-semver=”1.4.0-beta.6″ src=”https://code.angularjs.org/1.4.0-beta.6/angular.js”></script> <script src=”script.js”></script> </head> <body> <div ng-app=”myApp” ng-controller=”PeopleCtrl”> <input type=”text” name=”search1″ > <input type=”submit” ng-model=”search1″ value=”search” ng-click=”checkAll”> <table border=”1″ ng-init=”ageToShow=(people| underTwenty: 20).length >= 1″> <tr name=”search1″
Continue readingAngularjs validation issue for password field
Issue Here is my angularjs code for the password field : <input type=”password” class=”form-control” name=”password” ng-model=”signup.registerPassword” ng-minlength=”8″ > <small class=”errorMessage” data-ng-show=”signupForm.registerPassword.$dirty && signupForm.registerPassword.$error.minlength”> Minimum 8 characters.</small> <small class=”errorMessage” data-ng-show=”signupForm.registerPassword.$dirty && signupForm.registerPassword.$error.required”> Enter password again.</small> when I type the password below
Continue readinghow to hide value of input element if its $pristine
Issue I have ng-model attached to , but i want to display a default placeholder value if it’s not been touched ($pristine). Is there any good way to do it? I cannot simply set my ng-model value to null during
Continue readingAngularJS nested froms, submit button not working
Issue I have an outer form that once submitted will, send the user to the next step. The inner form is submitting search requests for a table that is nested in the outer form. At the moment my solution is
Continue readingangular- bind form submit with multiple buttons
Issue I have a form with multiple submit buttons: <form name=”myForm” customSubmit> <input type=”text” ng-minlength=”2″> <button type=”submit” ng-click=”foo1()”></button> <button type=”submit” ng-click=”foo2()”></button> </form> and a directive: angular.module(‘customSubmit’, []) .directive(‘customSubmit’, function() { return { require: ‘^form’, scope: { submit: ‘&’ }, link:
Continue readingSubmitting a Form with Angular JS and Spring MVC
Issue I am noob with Angular JS and I am having difficulties to submit a simple Form using Angular JS and Spring MVC. I am getting this error: The requested resource is not available mock.jsp <%@taglib prefix=’c’ uri=’http://java.sun.com/jsp/jstl/core’%> <%@taglib prefix=”spring”
Continue readingAngular Pass String to Function
Issue This seems like it should be easy to do, but I am not sure why this isn’t working. All I want to do is pass this string to the function. I’ve tried this. <form ng-submit=”edit(type)” ng-init=”type=’debt'”> I’ve tried this
Continue readingSimple submit form using Angular
Issue I’m new to Angular, but very old with google. I cannot find out how to submit this form using Angular, like how we do in jQuery. <form> <input type=”text” /> <button type=”button” class=”saveDraft”>Save Draft</button> <button type=”submit”>Submit</button> <form> I want
Continue readingAngular form not working in a table
Issue I created a working form placed in a div below a table; <div class=”row”> <form class=”form-signin” ng-submit=”controller.add.save()”> <h2 class=”form-signin-heading”>Add an item:</h2> <label for=”inputName” class=”sr-only”>Name</label> <input type=”text” name=”name” id=”inputName” class=”form-control” placeholder=”Name” required autofocus ng-model=”controller.add.name”> <label for=”inputDescription” class=”sr-only”>Description</label> <textarea name=”description” id=”inputDescription”
Continue readingng-pattern doesn't show $error.pattern
Issue I have script here and ng-pattern works correctly because scope.subnet is shown in Output only after input matches pattern. But ng-show doesn’t display any error if ng-pattern is not matched <body ng-contoller=”myConfigGenCtr”> <form novalidate name=”myForm”> <div class=”form-group”> <label for=”hostname”>Firewall
Continue readingClear an Angular form upon Submission
Issue I’m trying to clear the form, but keep facing some issues. How can I clear the form on a submit? HTML <form id=”contact” class=”contact-form” ng-submit=”sendMail()” novalidate ng-controller=”QuoteCtrl”> <div class=”message”></div> <div class=”col-md-5 col-sm-5 col-xs-12 animated hiding” data-animation=”slideInLeft”> <div class=”form-group”> <input
Continue readingHow to validate forms in Angular JS
Issue i’m a newbie in angular JS. and i was trying the input type=”text”, i’m retrieving my name from my controller and i was using $dirty and $invalid to validate my data but it isn’t showing when i make the
Continue readingng-minlength Angular Form Validation
Issue Angular seems to not be raising minLength or maxLength error in the below code… the required error (as well as the email error) is working however. I know ng-minlength and ng-maxlength is working because the input box is changing
Continue readingMy AngularJS validation does not work. I have added ng-required
Issue My AngularJS validation does not work. I have added ng-required. Please let me know where I am missing <ng-form id=”frmdisbursementScheduleMaintenance”> <div style=”padding-bottom: 8px;”> <button id=”cm-SaveBtn” name=”cm-SaveBtn” type=”button” ng-click=”submitted=true”>Save</button> <button id=”cm-RefreshBtn” name=”cm-RefreshBtn” type=”button”>Refresh</button> </div> <div> <table> <tr> <td><span class=”VNAVLabel”>Process Begin
Continue readingMy AngularJS validation does not work. I have added ng-required
Issue My AngularJS validation does not work. I have added ng-required. Please let me know where I am missing <ng-form id=”frmdisbursementScheduleMaintenance”> <div style=”padding-bottom: 8px;”> <button id=”cm-SaveBtn” name=”cm-SaveBtn” type=”button” ng-click=”submitted=true”>Save</button> <button id=”cm-RefreshBtn” name=”cm-RefreshBtn” type=”button”>Refresh</button> </div> <div> <table> <tr> <td><span class=”VNAVLabel”>Process Begin
Continue readingDynamic form creation in Angular based on server's response
Issue I am trying to create dynamic forms based on servers response. For example, I have 8 buttons, and each button when clicked should generate a different questionnaire with different input types. The questions for each category are grabbed from
Continue readingAngular validators and ng-maxlength use
Issue I’ve got the following div, which I want to add the bootstrap’s class “has-error” if the input length is over 50 characters. This is the HTML: <div class=”form-group” ng-class=”{has-error:[formData.titulo.$error]}”> <label for=”inputTitulo”>Título</label> <input type=”titulo” class=”form-control” id=”inputTitulo” maxlength=”50″ ng-maxlength=”50″ ng-model=”formData.titulo”> </div>
Continue readingHow do I get the value of a text field using AngularJS?
Issue I want to get the value of a text field value using AngularJS when a form is submitted. The code below always shows “undefined”. html: <form ng-submit=”AdvanceSearchSubmit($event)” name=”AdvanceSearch” novalidate> <p ng-show=”!AdvanceSearch.SearchKeyWord.$pristine && AdvanceSearch.SearchKeyWord.$invalid” class=”text-danger”>Text Cannot Be Empty!</p> <div ng-hide=”AdvanceSearchModel”
Continue readingAngular form is $valid when all inputs are blank, why?
Issue My form is showing up as valid even though all of my input fields are blank. I have the required keyword in the input fields. <!DOCTYPE html> <html ng-app=”myApp”> <head> <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/css/materialize.min.css”> <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”></script> <script type=”text/javascript” src=”/components/angular/angular.min.js”></script> <script
Continue readingAngularJS – Prevent submission of a form if it is invalid
Issue I have created an isolated case of my issue: http://plnkr.co/edit/6LXW5TG76LC9LNSrdpQC Here is the code of the isolated case: <!DOCTYPE html> <html ng-app="App"> <head></head> <body ng-controller="ExampleController"> <form name="form" ng-submit="submit()" novalidate> <input type="number" name="number" ng-model="number" required><br> <span ng-show="form.number.$error.required && form.number.$touched">Required<br></span> <span
Continue readingAngular 4 Dynamic form with nested groups
Issue I want to generate a reactive form from the tree structure. Here is the code that creates the form items (form groups and controls). For the controls nested in form group it I use a recursive template. import {
Continue readingHow to render ng-template dynamically with Template Reference in Angular
Issue I tried the example in this question Dynamic ngTemplateOutlet value but still, no success. I want to dynamically display an ng-template form based on the option selected by the user. I have defined global variables and 3 forms with
Continue readingCreate many forms in one component
Issue I’m trying to create many forms in one component. I’ve tried to implement this with mat-tab-groups <mat-tab-group> <mat-tab label="form1"> <form>…</form> </mat-tab> <mat-tab label="form2"> <form>…</form> </mat-tab> </mat-tab-group> I have these functions that create the forms in the ts: createForm1(){ this.form
Continue readingvalidate input with name containing brackets in AngularJS
Issue I have a form input with names containing brackets, e.g.: <form name=”my_form”> <input type=”text” name=”my_form[email]” ng-model=”email” ng-class=”‘mycssclass’: my_form.my_form[email].$invalid”> </form> So, the problem is that Angular is not applying that css class because of the name of my input (my_form[email]),
Continue readinghow to write ng-class object to compare complicated conditions?
Issue There is a form to let the user input some fields in 4 steps. For each step there maybe several fields. If all the fields shown in current step are valid this step will show green colour, otherwise it
Continue readingng-class in ng-repeat with a $index selector
Issue I want to select in the ng-class the form element, which is inside a ng-repeat, i need a 1:n selector in the ng-class. But the {{}} + $index is working correctly in the ng-class expression. The sector is parsed
Continue readingSilverStripe 3.1 custom form templating – how can I output a single action field without looping through all Actions?
Issue Hello SilverStripe Community, Forgive me if this is an elementary question, but in a custom form template, how can I output individual action fields without looping through all of them? Is there a way of doing that? For example,
Continue readingOverride form field templates in Symfony2
Issue I want to override base Symfony2 form input field, to add my class, but it does not work. Here is my code AcmeDemoBundle:Form:fields.html.twig {% extends ‘form_div_layout.html.twig’ %} {% block form_widget_simple %} {% set type = type|default(‘text’) %} <input type=”{{
Continue readingSimple PHP Form Templating
Issue You have a PHP form with the following field in it: (code block 1) City: <input type=”text” name=”city”><br> The form’s action attribute is set to itself. When submitted to the server, the page validates the field, and if it’s
Continue readingSubmitting a rating with Ajax or Javascript together with the rest of the form
Issue I’m creating a form with a PHP/MySQL backend where a user fills out a form for a new product and rates a couple of its aspects while he is at filling out the form. Now I have been looking
Continue readingSimple like/dislike rating system in php and MySQL
Issue I want to add a simple rating system to my random video site (id = youtube id) I don’t have much experience with php and MySQL and I’m not sure how to update a field using submit buttons in
Continue readingsend Rating via email form
Issue I’m building an email form. In this email form, there is a star rating with radio buttons: <span class=”star-rating”> <input type=”radio” name=”rating” id=”rating” value=”1″><i></i> <input type=”radio” name=”rating” id=”rating” value=”2″><i></i> <input type=”radio” name=”rating” id=”rating” value=”3″><i></i> <input type=”radio” name=”rating” id=”rating” value=”4″><i></i>
Continue readingPHP Default value and Print Issues
Issue I am currently trying to make my php, on the same page as the form, display the values correctly and calculate the overall passer rating. My calculations follow the formatting this way: C = ((# completions/#attempts) *100 -30)/20 Y=
Continue readingQuestionnaire scoring based on User's score
Issue I’m a total noob so pardon the errors. I am trying to create a script that returns a new score for User B based on User A’s score depending on the results of a 5-point Likert scale questionnaire. Both
Continue readingAngularJS with ng-pattern in form does not send invalid field to server
Issue I want to validate a text input in form, so the submit of the form could not be done until the input match a regular expression. But when I type a wrong field value and I clik submit the
Continue readingHow to do form validation across multiple tabs that validate with FormGroup
Issue I’m developing an Angular2 workflow app that collects data on multiple tabs, customizing the fields on each tab based on prior tabs’ values, and then validating that all tabs are filled out correctly along the way. I’m using the
Continue readingMultiple use of a form before it is submitted
Issue I’m new to JavaScript, and trying to figure out the canonical way to do the following. I have a form with some checkboxes and a selector. Let’s say the checkboxes are styles of music and the selector is for
Continue readingDojo widget inline editing
Issue I created a dojo widget for displaying a form data. I want to enable inline editing in this widget. First I started experimenting by writing html as strings in JavaScript. I don’t want to do this. dojo provides an
Continue readingform ng-submit loads a sub-view, but only once
Issue So basically I have a web page ‘Index’ which has a form, and a ng-view section. So what I want is for the user to fill out some fields in the form and submit it, ng-view is rendered beneath
Continue readingForm change and validity in angularjs
Issue Whenever any non-readonly input in my form changes and the form is valid, I want to do certain action. Let’s say, my form looks like <form name=”form” novalidate> <input ng-model=’input.a’ required/> <input ng-model=’input.b’ required/> <input value='{{output.p | number: 2}}’
Continue readingWhat is the correct way to validate all form fields on submit when using ng-repeat for dynamic form?
Issue I have a form with some fields (build with ng-repeat, so I dont know how much). I added to the submit button ng-disabled=form.field.$invalid and added to all the fields “required” but the ng-disabled work just for this last field.
Continue readingMaking and Angular form invalid when inputs aren't required
Issue I’m making a profile editor directly on the user’s profile page in where I want to show a live preview of the changes they are making. I’m basically updating the view using models attached to inputs and textareas. Here
Continue readingangularjs – not able to invalidate input (Object doesn't support property or method '$setValidity')
Issue I try to do the following if ($scope.RetypePassword != $scope.resource.Password) { $scope.resource.Password.$setValidity(“missmatch”, false); } else { $scope.resource.Password.$setValidity(“missmatch”, true); } but fail with this error TypeError: Object doesn’t support property or method ‘$setValidity’ What can the reason be? resource.Password is
Continue readingAngularJS Form Validation: $valid Always True
Issue I’m having trouble with AngularJS form validation. Below is a simple two-field form with the only requirements being that data for each field is required, one of which is of “email” type. The trouble is, no matter what I
Continue readingCannot read property '$valid' of undefined if form is inside a div with ng-if condition
Issue I have a form inside a div with ng-if condition. Initially form is closed. On click a button, form is displayed. But on submitting form, I’m getting Cannot read property ‘$valid’ of undefined error. If I change ng-if into
Continue readingAngular: force custom form validator to run on any field input
Issue I’ve written a custom validator for a password field, in order to verify the following scenarios: if user has id defined, then password is always valid (can be empty, meaning no change) if user does not have id defined,
Continue readingHow to connect page model object property to list of objects (from db) in <select> tag? ASP.NET Razor Pages
Issue Weapon model: public class Weapon { public int Id { get; set; } public string Name { get; set; } public int BaseDamage { get; set; } // base damage with average attack public int MagicDamage { get; set;
Continue readingAngular 5 formgroup list controls or iterate them
Issue I am using angular 5 with formgorup and wish to iterate the controls, in order to create a dynamic component based on a form, the forms fields are given by an external data service (database etc.) It is declares
Continue readingAngular 2 Forms: binding html select to collection of objects
Issue I would like to display a collection of selectable objects in an angular 2 application (RC 5, forms 0.3.0) <select [(ngModel)]=”selectedItem”> <option *ngFor=”let item of selectableItems” [value]=”item”> {{ item }} </option> </select> <div> {{ selectedItem }} </div> The list
Continue readingAngular2 can't use ngModel in form repeated by ngFor
Issue How can I use ngModel for inputs across multiple forms that’s repeated by ngFor? Angular2 gives me error when I’m trying to do so. Error: Permission denied to access property “rejection” Example block of problematic code: <div *ngFor=”let item
Continue readinghow to bind component variable to form object instance property
Issue I am not quite sure how to bind a variable from my component class to a property value in my form object. The form needs to display this value and add it to the ngModel so that it can
Continue reading(Editing Angular 5) I can't get the values of the object that is in NgModel
Issue I could not get the object of this field component.html <div class=”form-group”> <input type=”number” name=”totalPrice” class=”form-control” #lastname=”ngModel”[(ngModel)]=”invoiceService.selectedInvoice.totalPrice” readonly> </div> <!– working ok –> <div class=”form-group”> <input type=”number” name=”purchases” class=”form-control” #purchases=”ngModel” [(ngModel)]=”invoiceService.selectedInvoice.purchases[‘product’]” readonly> </div><!– not working –> this the element
Continue readingChanging value bind to ng-model doesn't change the value on the input text
Issue I have an input text box which use ngModel bind to a variable inside the component class. Upon clicking a button I want to clear the input text, however changing the variable value doesn’t change the input text. I
Continue readingHow to implement ngModel (two way binding) for radio buttons when used as custom Component?
Issue I have a custom Component for radio buttons using: NG_VALUE_ACCESSOR I embed the radio-buttons in a parent component and try to pass the ngModel and required attribute to it, but It doesn’t work. All the use case and code
Continue readingHow to validate at least one checkbox is selected in Angular
Issue I have a list of angular checkboxes and need to validate if at least one is selected. The checkbox items are dynamic(they come from a service) so it is not a static list. One time it could have 3
Continue readingWhy is my button not appearing on the page?
Issue I have this form in a partial: <%= form_for current_user.relationships.build(:followed_id => @profile.user.id) do |f| %> <div><%= f.hidden_field :followed_id %></div> <div class=”follow_button”><%= f.submit “Follow” %></div> <% end %> that is rendered to my profile view. Here is the resulting html:
Continue readingUnfocus input after submit react-hook-form in Typescript-React project
Issue Hell here ! I’m on TS-React project, i got some inputs where scanning some barecode value. I’m using react-hook-form and the useForm Hook. I got some little form (one input-text and one submit button) in a global form and
Continue readingDjango sign in form, the stylizing with Bootstrap is not doing anything
Issue I am having some troubles with Django. So, I wanted to use Bootstrap´s sign in template and use it in my project. So, I have been able to do it correctly, except the username and password fields, which are
Continue readingForm elements overwrite default properties of a form object
Issue Let’s say we have a form with the following inputs: (and yes, what if we really want to have those names) <form id="form-id"> <input type="text" name="submit" /> <input type="text" name="elements" /> <input type="text" name="id" /> <input type="text" name="addEventListener" />
Continue reading(ASP.NET) Changing an input at the start of Page_Load() and then retriving the input value after form submit gives the old value
Issue I have a form that is supposed to have defalt values, which the user can decide to change in some fields. The inputs are set up like this: <input type="text" id="username" clientidmode="static" runat="server" /> I am setting the default
Continue readingBank ATM ledger in Django – – deposit, withdrawal, balance
Issue I’m trying to build a rudimentary interactive ATM machine ledger prototype demo in Python with Django. Here is what my web app currently looks like. The intended basic functionality I am trying to create right now is to have
Continue readingHTML & Angular Material disable save button from outside div when form fields are empty
Issue I have the following Angular Material form with the Close and Save buttons in an outside div for design reasons: <h1 mat-dialog-title>Product Page</h1> <div mat-dialog-content> <form [formGroup]="productForm"> <mat-form-field appearance="outline"> <mat-label>Name</mat-label> <input formControlName="name" required matInput placeholder="Name" style="text-transform:uppercase"> </mat-form-field> <mat-form-field appearance="outline">
Continue readingHow can I put two ngFor in one div
Issue I have a form which contain a list of checkboxes. I want to display a form input in front of each checkbox when this checkbox is checked This is my html : <div class = "checkbox"> <label formArrayName="coverages" *ngFor="let
Continue readingHow to check if new control is added in NgForm?
Issue I’m new to the NgForm. So here’s the code & below the scenario… I have an application where use has to enter multiple server paths. All the paths are stored in a list. UI populates all the paths using
Continue readingHow to display message in HTML Tag with PHP in a function
Issue I have this PHP form validator that is also hooked up to a mail function and to keep things organized I did the form validation in a separate function that is being called when the form is submitted. Now
Continue readingDjango form – use different pre defined date ranges for different choices
Issue I have a Django form where the user can select a variable in a choice field, start date and end date in a select date widget. For different variables, the possible start and end dates varies. The form works,
Continue readingUse separate divs for each set of inputs and labels and place id in hidden input
Issue I have been told i need to do as the title says and use separate divs for each set of inputs and labels and place ID in a hidden input. could any one give me advice on how to
Continue readingAdding contact form to a static website
Issue I have to add a contact form to a static website. I already got some experience with forms, done 2 or 3 using django/python, but sadly using django is not an option here, it has to be added to
Continue readingGoogle Tag Manager push event
Issue I created a form for our company’s landing page. Our marketing department sent me this GTM code to include in the header. <!– Google Tag Manager –> <script> (function(w, d, s, l, i) { w[l] = w[l] || [];
Continue readingHow to validate password and confirm password using angular 12 material?
Issue I would like a lot of help from you. I’m not able to validate the password field and confirm password using angular material in version 12. I’m using this structure below in html. <div> <mat-form-field> <mat-label>Password</mat-label> <input matInput type="password"
Continue readingNeed to convert a value output in php
Issue I have a form with checkbox input, and a hidden ‘sibling’ input attached to it, so that I can generate 2 different values, ‘0’ or ‘3’ depending on whether or not the box is checked. Unchecked = ‘0’, Checked
Continue readinghow to set value of form input fields and re-check their form validation errors
Issue 🙂 I’m writing an angular8 web app with angular material. I use ReactiveForms to build a FormGroup in order to validate it’s fields. I have two fields of To Date and To Time that if I try to submit
Continue readingHow to download an html webpage containing a filled form as an HTML file using javascript
Issue I have a webpage that contains a form. The user will fill the fields form. How can I save the webpage as an HTML file containing the filled fields? The code below downloads the webpage as an HTML file
Continue readingHow to show setCustomValidity message/tooltip without submit event
Issue I’m using forms basic validation to check if email is correct format, then the data is sent by Ajax where it checks if email address is already in use and did the user select country/state or left default values
Continue readingHow can I change background color of web page from drop down using javascript need this
Issue I need help regarding JavaScript function code where I want to change the background-color of a web page from drop down list. When someone select any color from the list then it responds as same and change the background
Continue readingMy input inside a form in Angular is not showing it's default value
Issue I have a form in which I would like to have a default value inside one of the input, that default value being the user’s display name, however, it’s not showing, and even "hi" is not shown when added
Continue readingCheckbox form on Next.js and Typescript project
Issue I am working on a projet with Next.js and Typescript. I have a form and it is the first time working with Typescript and the checkbox type. I am having issues trying to get all the values of the
Continue readingJavascript get form value in URL without jQuery
Issue If data is submitted via POST through the classic HTML form method is it possible to access those values using standard Javascript without libraries? How would this be done? Edit for clarity: The variables have been posted. I am
Continue readingPHP files not detected using the $_FILES array
Issue The problem The $_FILES[‘file’] array is set, yet it’s empty whenever I try to use it. What I tried Googling Setting file upload to On in php.ini (both Xampp and project file root) Uploading one file at a time
Continue readingHow do you submit parameters from a input tag into a form onsubmit attribute in HTML?
Issue I have 3 inputs, and I want to put their values into the form onsubmit attribute function. Here’s my current code. I would like a way to do this that won’t require me to create 3 variables using getElementById()
Continue readingGet JSON data on HTML Form Submit with HTTP POST
Issue I am trying to get JSON data on click of a button Heres the HTML for it <html> <title> </title> <body> <h2> Main API – http://api.kalendern.se/api</h3> <form method="get" enctype="application/json; charset=utf-8" action="http://api.example.com" border="1"> <input type=submit value="Show Main API"> </td> </form>
Continue reading.value not working in for forms javascript
Issue When I use the form element I get an error saying that it can’t set the properties to undefined. html: <form name="regForm"> <table> <tr> <!– First Name –> <td> <input id="firstName" type="text" placeholder="First Name"> </td> </tr> <tr> <!– Error
Continue readingGenerating a PDF with form answers in NodeJs and send it by email
Issue I’m on a personal project which is a simple form with many inputs to be filled. The last step is to confirmed the datas, once this is done, I would like to generate a PDF of the form answers
Continue readingcy.type() can only accept a string or number. You passed in: undefined
Issue I am trying to fill out an HTML form using a CSV file. For them I first convert the CSV file to JSON and then try to fill the form using the JSON file. However, the only thing I
Continue readingHow to make submission function work in a web form that is created using Google Apps Script and embedded in a Google Site?
Issue I want to embed a web created using Google Apps Script to a Google Site. However, data submission button in the form comes to be defunct, when the form is embedded in a Google Site like this. In the
Continue readingDuring change event radio button affects wrong form
Issue I have a page with multiple forms and a change listener on each a couple of radio buttons to submit the form on change. Except, it’s submitting the wrong form. I went through the source code on the page
Continue readingPHP Header Location – Prevent Chrome Prompting Save Password
Issue Please note the code snippet is just there as an example, there is nothing wrong with the way it works – my question is relating to Chrome’s default behaviour of prompting the user to remember their sign-in details, which
Continue readingCan I use an HTML input type "date" to collect only a year?
Issue I have a field that is required to collect a year from the user (i.e. a date with a year resolution – for ease of storage I’d prefer to store an actual date value and not a number). I
Continue readingGetting all form values by JavaScript
Issue I have form: <form onchange="allvaluestostring()"> <select name="status"> <option value="*">All</option> <option value="1">Active</option> <option value="0">Inactive</option> </select> <select name="size"> <option value="*">All</option> <option value="small">Small</option> <option value="big">Big</option> </select> </form> And the onchange action of any input in form I need to get a JavaScript
Continue reading