113,165 questions
Best practices
1
vote
3
replies
43
views
Any Best Practice Setup Form in Angular 18-20?
I’m currently working on an Angular project and trying to figure out the best way to set up forms in Angular 18–20.
Right now I’m using Reactive Forms, but I’ve seen some discussions about the ...
Advice
0
votes
7
replies
97
views
Add minimum quatitiy function to JavaScript
I found the following JavaScript function for jQuery online:
function wcqib_refresh_quantity_increments() {
jQuery("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)")....
0
votes
1
answer
88
views
User input Form alignment
I am working on a form to allow the user to enter some input. Here is my code:
import SwiftUI
struct ContentView: View {
@State private var searchString = "TEST"
@State private var ...
0
votes
1
answer
33
views
htmx input gets wrong value on reload when inputs reordered
I have a table of cells like
<td>
<input
type="text"
name="place" id="place-bb0a9449-c9d6-436f-aa6c-d3ed9c98f7ff"
value="A"
hx-post=&...
Advice
2
votes
3
replies
58
views
How can I enable dark mode for the Windows Forms Designer in JetBrains Rider?
I am developing a Windows Forms application in JetBrains Rider and using the WinForms Designer to design my forms.
My IDE theme is set to a dark theme (high contrast / dark mode), but the Windows ...
0
votes
0
answers
40
views
gettext does not translate validation error messages inside __init__ constructor
I am making a real estate Django app in my language (Serbian). I changed the app's language inside settings.
realestate\settings.py:
# Internationalization
# https://docs.djangoproject.com/en/5.2/...
Best practices
0
votes
1
replies
39
views
standalone checkbox with structured copy on form
(Caveat: This is within Drupal. so it's not entirely under my control. Still, it's just HTML, not a Drupal issue.)
I have a webform with an acknowledgment checkbox. But the acknowledgment has some ...
1
vote
1
answer
144
views
Prevent Firefox 'Save address?' prompt on form submit in JavaScript address book app
I'm building a web-based address book module for a larger app where users will frequently create/edit contacts. Mozilla Firefox aggressively prompts "Save Address?" or "Update contact?&...
0
votes
2
answers
135
views
Extend signal form's FormField directive
Just learning signal forms and I'm trying to extend the functionality of the new FormField directive in angular 21 to add some custom classes to show valid/invalid states on my input.
So, here's what ...
1
vote
0
answers
104
views
VB6 form update issue using .net user control
I wrote some .net (framework) UserControls and embedded them to my vb6 form application, in order to get more graph functionality. (due to some reasons the vb6 application has still to be used).
The ...
-1
votes
1
answer
141
views
How can I get the actual values of a List Box or Dropdown List Option from this HTA to a txt file
I would like to modify this vb script so that i can add the values selected from a drop-down box so that it also sends the data to the text file as for example.
The text file should show for example:
...
0
votes
0
answers
91
views
Browser not prompting to save password on React login form despite correct autocomplete attributes
I have a React login form with the correct autocomplete attributes, but the browser never prompts me to save the password after a successful login.
<form onSubmit={handleSubmit}>
<input ...
1
vote
0
answers
42
views
Getting "Undefined index" warning when submitting a simple PHP form [duplicate]
I checked similar questions, but I am still confused as a beginner and would like a simple explanation.
I am a beginner learning PHP and working with HTML forms.
I am submitting a form using the POST ...
1
vote
1
answer
95
views
Form page reloads on submit despite calling event.preventDefault() in JavaScript [duplicate]
I am trying to prevent a form from reloading the page when it is submitted. I am calling event.preventDefault(), but the page still reloads every time I click the submit button.
Here is my HTML:
<...
0
votes
1
answer
83
views
Json is not returned to the calling Ajax
I have a form in a partial view. The view receives a "model".
@model EditUserViewModel
@{Layout = null;}
<form asp-action="Edit" id="EditUser" method="post"&...