113,313 questions
0
votes
1
answer
61
views
Remove error from Inputfield when user input value in field in React [closed]
My Approach:
const validateField = (field, value) => {
if (!value.trim()) {
return "This field is required";
}
const regexRules = {
name: /^[A-Za-z ]+$/,
email: /^[^\...
1
vote
0
answers
42
views
How to create optional value with Tanstack form and Zod?
How to create optional value with Tanstack form and Zod?
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { z } from 'zod';
import { revalidateLogic, ...
2
votes
1
answer
91
views
Poem Generator (JS)
I'm trying to make a random poem generator where, when the necessary inputs are made a topic id first created (consisting of the name of girl and name of country) then the poem which also has the name ...
2
votes
0
answers
39
views
Symfony 6 - EasyAdmin - Custom form type canvas
I use Symfony 6 with EasyAdmin,
I've been trying for several hours to understand how form types work in Symfony, and more specifically how to set up a custom form field, but I can't find a simple, ...
0
votes
1
answer
91
views
javascript fetch and redirect through flask view not working as expected
In the html intro to a web app for a scientific study, data is collected through forms.
I added a javascript function that submits the data via the fetch API:
fetch('/prepare/', {
"method":...
1
vote
3
answers
91
views
How to keep only a specific field from a Form Group active when disabling an Angular form?
I have a reactive form in Angular where when a specific field active_deActive is changed, I want the entire form to be deactivated, but the field itself to remain active so that the user can change it ...
1
vote
0
answers
63
views
How to integrate v3 invisible recaptcha to Magento 2.4.6 search
I have integrated recaptcha in search form but the issue is when user directly hit the search url like catalogsearch/result/?q=ring, there also i have integrate recaptcha. Please suggest some method. ...
0
votes
0
answers
44
views
Over riding a forms Submit button with Javascript [duplicate]
I have a login form with a submit button to submit the form. it 'Fetches' a PHP page that sets some SESSION Variables and returns to the login screen.
on completion I hide the Login Name and Password ...
0
votes
0
answers
50
views
Keeping the current chosen option from <select> marker passed from Django
I'm currently trying to create a website/webapp for my portfolio's bank using Django 5.2/HTML/CSS/JS. I got stuck on one small part of creating bank statement subpage.
The issue I have encountered is: ...
0
votes
2
answers
58
views
SvelteKit form inside a modal won’t submit to +page.server.js action
So I have a SvelteKit project with the following project structure:
lib/
├─ components/
│ └─ my_module/
│ └─ my_resource/
│ ├─ CreateObjectButton.svelte ← Button component (important by ...
0
votes
0
answers
53
views
What is the best way to be handling onmounted calls while making sure the global state management array does not make the form dirty
This is my onMounted call and the loadTripAdvanceDetail function here is responsible for populating the form for edit operations however it makes my form dirty and gives me the unsaved changes dialog ...
1
vote
1
answer
133
views
Aligning controls in a Form
In my ongoing quest to understand the layout in a form, I decided to see if I can emulate the sidebar in the new Icon Composer app. I am focusing now on the rows with a title, switch and TextField. ...
-4
votes
1
answer
94
views
Database not updating, using C# and Windows forms [closed]
I have a SQL database being locally hosted that keeps track of stock, I'm trying to get the SQL command "UPDATE stock SET cantidad = 530 WHERE id = 0" through using a C# Windows form ...
-1
votes
2
answers
105
views
Submit combined form elements from parent and iframe
I'm trying to get this working, based on a YouTube video that credits a post on here. However, I've tried it exactly as shown on the video, along with numerous alterations in an attempt to make it ...
1
vote
3
answers
100
views
Quiz and sessionStorage: How to prevent point accumulation with the 'back' button?
I created a multi-page quiz, and I use the sessionStorage API to calculate the points and display the final score on the last page. Each time, I have a first page with the quiz.
<form id="q1&...
0
votes
2
answers
109
views
TYPO3 EXT:form prefill a form field with an id of the current object defined in the object table (not uid)
I have a small form in TYPO3 V12 that generates a request for more information on the current object, I'd like to prefill a form field with the id of the object so that it is send with the request, I ...
0
votes
1
answer
80
views
HTML Post array from single hidden input passes an array but PHP not processing it correctly [duplicate]
I have read quite a few posts on this, most provide various solutions but none are really addressing the underlying "why"? I can't figure out PHPs behavior when processing a single $_POST ...
0
votes
2
answers
89
views
Percent encode HTML form [closed]
I have a html form - method="get" is obligatory in my case :
<form action="https://websiteurl.com/searchresult" method="get" id="bookingform">
<input ...
0
votes
0
answers
40
views
form action attribute not using forwarded request URI
In jakarta mojarra 4.0.11 the action attribute of the form component is not using the forwarded request URI but the normal request URI.
This was not the case in javax mojarra 2.3.18 as i see now ...
1
vote
1
answer
78
views
Idiomatic Rails way to select records with checkboxes in a big form to choose whether to save or not
I’m building a Rails app related to golf. Users can search for golf courses via an API, and the results are rendered as individual forms per course.
Right now, each course must be saved individually, ...
1
vote
0
answers
127
views
VBA Excel - Enable and disable controls in a form depending of a combobox value
I have a combobox control in a form made for an Excel application, using VBA. Let's suppose that the combobox is called cmb010. Next to it there are 2 other controls called txt011, cmb012 and txt013. ...
0
votes
2
answers
35
views
JSON Schema if, then conditional statement clarification
my schema rules:
Checking html select value make the AJV consider the select field required even I did not set it to be required
I need to check the select value without make it required.
export const ...
0
votes
3
answers
79
views
How to set custom validation message for HTML input on mouseenter?
I have an ASP.NET Core project and I'm trying to set custom text for the validation tooltip for the HTML form input field. By default, it shows "Please fill out this field". I tried to add ...
1
vote
1
answer
38
views
disable some parts of a form
How can I disable a whole section of a form in TypeScript/React?
Body:
I'm building a form in TypeScript (using React), and I want to disable an entire section of the form — similar to how Stack ...
0
votes
1
answer
89
views
Controlled Select Element Loses Value After Form Submission with useActionState in Next.js
I'm building a form—ideally using the useActionState server-action setup—that needs to persist its values during submissions. The problem is, I can't use the defaultValue prop on the element, because ...