311 questions
557
votes
17
answers
954k
views
How to uncheck a radio button?
I have group of radio buttons that I want to uncheck after an AJAX form is submitted using jQuery. I have the following function:
function clearForm(){
$('#frm input[type="text"]').each(function(){
...
26
votes
4
answers
49k
views
ASP.NET MVC Dynamic Forms
Can anyone suggest the right approach for handling dynamic forms with ASP.NET MVC?
I have cascading dropdowns on the page (options in the dropdown depends on the value, selected in the previous ...
25
votes
2
answers
55k
views
How to create dynamic JSF form fields
I have found some similar questions like this one, however there are so many ways this can be done that it made me more confused.
We are getting an XML file that we are reading. This XML contains ...
16
votes
1
answer
16k
views
How to implement a dynamic list with a JSF 2.0 Composite Component?
I asked this question and although the answer directly satisfied my needs I am left with a feeling that there has to a simpler solution for this specific problem.
I would like to have a composite ...
12
votes
1
answer
18k
views
Django - How ModelChoiceField queryset's works?
I have a form with a ModelChoiceField, and i want to load on it a table from my DB. If i use this queryset on my form's init, then my view's form.is_valid works fine:
self.fields['categoria_formfield'...
8
votes
2
answers
25k
views
How to Dynamically add a row in a table in JSF?
In my application i need to add a row on a click of a button and this button will be in all the rows. Need help to do this?
Item Class
public class Item {
public Item()
{
}
private String value;
...
6
votes
2
answers
10k
views
Zeppelin Dynamic Form Drop Down value in SQL
I have a dropdown element in my Zeppelin notebook
val instrument = z.select("Select Item", Seq(("A", "1"),("B", "2"),("C", "3")))
I want to use the value of this variable instrument in my sql. For e....
5
votes
1
answer
12k
views
Dynamic select dropdown Rails 5 / AJAX
I'm trying to make a three input select menu that allows a user to filter down to one course in the database to select. So the user first selects the location, and based on that selection is given all ...
5
votes
2
answers
1k
views
Updating Dynamic Form Fields in MySQL Database
I have created a form that allows users to dynamically add as many fields as needed. Each of these is an inventory item that is assigned to a device. I have 3 tables, the Devices, the Inventory Items, ...
5
votes
2
answers
2k
views
Angular FormArray or FormGroup - With Extra Data
I have a table that is dynamically created and it displays data as follows:
<table>
<tr *ngFor="let product of products">
<td>{{product.name}}</td>
<td>{{...
4
votes
4
answers
32k
views
How to get element Id from dynamically generated form elements with jquery?
To try the concept, I'm doing a very simple test.
I got a form with some text input showing up from the start.
When I click on a field, I want to capture its Id, and add a value to the input text.
$(...
4
votes
1
answer
3k
views
How to collect submitted values of a List<T> in JSF?
I have a bean with a List<T>:
@Named
@ViewScoped
public class Bean {
private List<Item> items;
private String value;
@Inject
private ItemService itemService;
@...
3
votes
2
answers
4k
views
How to hide Django form fields using JavaScript, Jquery etc
I would like to dynamically
hide form fields. The user should be able to select the component type, which could be a VALVE in which case the user should specify the Kv value and the DI and length ...
3
votes
1
answer
10k
views
Dynamically adding form fields to reactive forms in Angular 8
I'm having some trouble getting form fields to populate from an array. My original thinking is to input the array from individual components to a single component that will handle the form. Instead of ...
3
votes
1
answer
750
views
How to concatenation values from string into value in variable?
I am currently working in Open cart frame work. In that Open Cart, Dynamic forms are present.In that Dynamic form, so the script also dynamic, I have to calculate when the form data changes. during ...
3
votes
2
answers
8k
views
React dynamic form input
I have a React form with dynamic input fields that a user can add and remove input fields. When i submit the form, i log the values from each input in an array. The problem is that i can't type ...
3
votes
1
answer
2k
views
Yii2 Dynamic Form Error on Create - The 'model' property must be set and must extend from '\yii\base\Model'
In Yii2, I have been trying to create a dynamic form using the below tutorials.
Yii2-dynamicForm - GitHub and Youtube Tutorial.
I followed the same step as mentioned in tutorials, unfortunately I ...
3
votes
0
answers
308
views
Create unit conversion input and dropdown (Angular 9 dynamic forms)
I have an input that's part of the form group which is a number saved on the server in meters. The frontend needs the ability to convert this value to whatever the user chooses in a dropdown list (...
3
votes
0
answers
1k
views
Is it possible to dynamically generate choices in symfony 4 form collections?
Is it possible to dynamically generate choices in form collections?
The situation:
ItemEntity
PropertyEntity
These entities can be added and edited through the Item Form.
When you add a type to the ...
2
votes
4
answers
12k
views
Jquery .keypress on a dynamically added input
I am currently adding an input via a .click event and then wanting to listen to any keypress that occurs on this input. However, the appended isn't firing any events after it is inserted (i.e. blur, ...
2
votes
2
answers
3k
views
vb6 call form with name contained in array
I have an Array named Menus. It contains a form name per element.
How can I call them dynamically?
For example, if Menus(1) = "Login", and Menus(2) = "Logout" I need to say
Login.Show
but I want to ...
2
votes
2
answers
3k
views
Zend Framework Dynamically added fields of a form and populate
I have been attempting to create a form where a user can simply press a button and the form will add a new field for the user to use. I have 2 of these dynamically added field types.
Firstly a field ...
2
votes
3
answers
665
views
Dynamic forms
I want to create a script that does the following:
When answering questions via a radio, drop-down, or checkbox, the script checks
When selecting a radio button (or dropdown, or any form element ...
2
votes
1
answer
2k
views
Codeigniter HMVC and calling a view from jQuery
New to HMVC in Codeigniter.
Dynamic form allows new "segments" to be created when a user clicks a link.
Currently the segment html & php is in module/view/segment_view.php. The view ...
2
votes
1
answer
468
views
Dynamic calculation using Vuetify
I'm trying to create dynamic calculator using Vuetify. Here's my code
<v-row class="mt-8 align-self-center">
<v-col cols="2">
<v-text-field :value="...