Questions tagged [dynamicform]

Questions about dynamic HTML forms, e.g. JavaScript managed (add/remove inputs, change inputs' values...) It also represents one specialized class/widget in SmartGWT.

Filter by
Sorted by
Tagged with
0 votes
0 answers
234 views

react-hook-form validation triggers even if field has been unregistered

I have a dynamic form, that I can add/remove fields to it. I use react-hook-form and also yup to handle form validation. When a field is removed dynamically, I also unregister it using react-hook-...
work at ofogh's user avatar
0 votes
1 answer
65 views

how to update form fields by condition in dynamic form in angular?

I have a dynamic form in Angular and I want to change form fields by condition, for example I want to show Accept terms field only when the user selects India as a country. Example: The user selects &...
user21636825's user avatar
1 vote
2 answers
50 views

Reset dynamic form field issue in angular

I am unable to reset particular form fields in angular. I am attaching here link, where I am trying to achieve, but not working. Please help!! https://stackblitz.com/edit/angular-dynamic-form-fields-...
Supriya Kumari's user avatar
0 votes
1 answer
11 views

Failed to fetch data for display in dropdwon on dynamic form

I made a dynamic form, there is a dropdown that retrieves data based on the mysql database, in the first part the data appears but when the form is added the data on the dropdwon doesn't appear. enter ...
Sandro Purba's user avatar
0 votes
0 answers
25 views

How to prevent `formset_factory` from generating an initial form?

Given the following form: class MyForm(forms.Form): my_field = forms.CharField( max_length=255, widget=forms.TextInput( attrs={'placeholder': 'My field', 'class': 'form-...
nlblack323's user avatar
0 votes
0 answers
21 views

HTML Dynamic input fields form validation in Codeigniter

I have created this HTML form for adding education details dynamically. I tried to add form validation on it in Codeigniter but form validation is not running. <div class="row p-0"> ...
ShivaKant's user avatar
0 votes
1 answer
61 views

Dropdown selection won't return data from second database

I am having several issues with a web based dynamic form that I am building. My most frustrating problem at the moment, is that I can get a manufacturer database to populate the first, #bodyman ...
Michael's user avatar
  • 25
0 votes
0 answers
131 views

How to fix error in foreach loop, my data in for each is not inserting?

I'm using dynamic form and I want to insert data, my form is inserting data in two different tables ,the problem is inserting data in the second table is not working, the data is coming from the ...
Joe Rick's user avatar
0 votes
1 answer
720 views

Facing validation issues on nested and parent field when creating dynamic form using react-hook-form and yup

I'm trying to create a dynamic form with following validation - User must choose a minimum of 2 choices. Each choice must be a non-empty string. I'm trying to achieve it using Yup for form ...
Anmol kansal's user avatar
0 votes
1 answer
462 views

Laravel 7 dynamic "add fields" form. foreach() argument must be of type array|object, null given

This my first post here, but by no mean my first time visiting. I'm an amateur coder and I'm working on something that has stumped me for passed day or two... I'm building a site using Laravel 7. One ...
SunriseLLC's user avatar
0 votes
1 answer
547 views

ASP.NET Core Web App - Dynamic form values passed to OnPost

I'm creating an ASP.NET Core Web App with .NET 6 and I'm trying to find a way to pass a dynamic list of variables back to the OnPost handler. Here's the details, I create a form on the page during the ...
Ed R.'s user avatar
  • 149
0 votes
1 answer
130 views

how can i store data in dynamic field using php and mysqli

I am creating a dynamic resume form in which I have created dynamic add remove field with the help of java script but I am not getting any idea to store the input values of this dynamic form in ...
Ramkrishna Sahu's user avatar
0 votes
1 answer
323 views

React-Final-Form -> Dynamically created from based on data from server

EDIT: THE IDEA BELLOW WORKS I just noticed that the problem was in . notation of values I used. The path must be correctly converted to the same object structure as in case of tools changeValue). Also,...
Fis's user avatar
  • 787
0 votes
0 answers
30 views

In an asp.net core project, Can I assume an option for user to add a field to SQL table and previous forms changing dynamically?

I have a web application that created with asp.net core. My model is a SQL database. For any table, there is a controller and some views to insert, update, delete, and display data. (views are use CSS,...
NedaM's user avatar
  • 87
0 votes
0 answers
49 views

unable to click and enter text for Dynamic Form using seleninum java

i was unable click and enter text using selenium java here is sample text path scLocator=//DynamicForm[ID="CollapseView_RuleGrid_activeView_RuleForm"]/item[name=name1||title=title1||index=26|...
Manjunath's user avatar
1 vote
2 answers
2k views

Implement dynamic checkbox with checked handler in React js

I'm having problems setting state for my dynamic checkbox for my array, changing an object from false to true, using a checked handler. below is my code: const [form, setForm] = useState({ tags:[ ...
Jennifer Ehala's user avatar
0 votes
1 answer
361 views

How to focus first invalid ngx-formly field

I am using ngx-formly for creating dynamic form from field configuration. On submitting form, validation is showed correctly. I want to focus first invalid formly field.
Saad Khan's user avatar
  • 109
1 vote
1 answer
499 views

Is there a way to toggle visibility for multiple password fields with a dynamic form using vuetify vuejs?

I have a dynamic form that is constructed based off of json from the backend of input types, id, names, values, etc. One of my forms has two password fields that come from the backend. Is there a ...
JDun's user avatar
  • 189
0 votes
1 answer
27 views

In Django, how to modify field names in dynamic forms using Java Script

I created a form. Using jQuery got first para of form. Using add function I am adding it again. With this I am getting same names for all the new fields. I am not able to retrieve its values in views....
Venugopal Reddy's user avatar
0 votes
2 answers
392 views

How can I get a <select> field to change dynamically based on the input from another <select> field in React?

I'm trying to get the "category" select field to change based on the selection from the "type" category. So if I select "income" from the first selection, then it will ...
Cip 's user avatar
  • 93
1 vote
1 answer
8k views

Do not mutate vuex store state outside mutation handlers error for set state array

After writing the data to vuex state I am getting error because I am using v-model. The instance has both object and array instances. There is no error in the object state but I am getting the ...
Enes Genc's user avatar
0 votes
1 answer
130 views

Angular. How to fill formArray with data with restoring field structure?

I have a Angular dynamic form with several sections. The section can be formGroup and formArray. And each section can also have a formGroup and a formArray. I want to implement rollback of unsaved ...
Stas's user avatar
  • 1
0 votes
1 answer
149 views

JSReact, Deleting any dynamically added form content other than last item wipes the form

I'm building a form with dynamically added fields and am working on the ability to delete fields if a user changes their mind about one. When deleting the last item added it works as expected, but if ...
Cecaelia's user avatar
0 votes
1 answer
902 views

add/remove multiple input fields and input rows dynamically PHP (Dynamic form In Dynamic Form)

i am making a dynamic PHP form, i have successfully making dynamic form, how if i want to make form dynamic in dynamic fields, like in the table make a dynamic fields in dynamic Rows ? this is my ...
ubay's user avatar
  • 15
0 votes
0 answers
711 views

How do i send the values of a dynamic form from react to node js

I'm trying to design a dynamic form where if user needs to insert more than one resource person details they can click on the + sign and the same textboxes will be displayed again. The values from the ...
Preethi Naidu's user avatar
0 votes
0 answers
44 views

Creating dynamic form ,Its values change across all the copy fields

const [formSectionData, setFormSectionData] = useState([ {id: 1, text: ''}, {id: 2, text: ''}, ]); const addSection = section => { let existingForm = [...formSectionData]; ...
Ajith's user avatar
  • 775
-1 votes
1 answer
117 views

Dynamic form inserting blank values into database

I'm having some trouble adding form data to a database. The form is dynamically changing depending on previous values selected but during the insert into database, the values are blank but I can't ...
Kev's user avatar
  • 113
0 votes
1 answer
135 views

add inputs dynamically react redux

hello I will ask this question again because I still can’t find a answer I try to create a form similar to google form with react and redux each question is represented by: QuestionCard contains a ...
Mouna Sis's user avatar
2 votes
1 answer
1k views

@ngx-fomly Validation not working in custom input

I am using NGX-FORMLY @ngx-formly/bootstrap: "^5.0.0" for dynamic forms. It was working with default input types. But not working in case of custom input. my custom Input.ts import { ...
Anil Kumar's user avatar
0 votes
1 answer
1k views

angular dynamic controls with reactive form issues in edit and how can updated the values

I am trying to created inline dynamic form with reactive forms i am able to add new object and loop in dom but when i have pressed the edit button it's not working and also getting error in console. ...
user11657014's user avatar
0 votes
1 answer
187 views

Is it possible to create a dynamic form (add new fields in runtime) with CreateView in Django?

I'm building a form that allows the user to add the different features of a product, and I also want it to be a dynamic form so the user can put whatever categories he want in it. Something like, Form:...
motyas's user avatar
  • 1
2 votes
0 answers
247 views

Upload widget does not work - Dynamic form Yii2 starter kit

iam using the widget (trntv\filekit\widget \ Upload) of yii2-starter-kit, implement the use of the dynamic form (wbraganca\dynamicform\DynamicFormWidget), the problem is that the upload widget works ...
jaz's user avatar
  • 91
0 votes
1 answer
781 views

Storing Dynamic Form data in SQL and retrieving as a View or possibly as a stored procedure

We are reengineering our Delphi 7 Professional based product in ASP.NET Core using Blazor. We are developing a dynamic form that allows users to add new worksheet types into the system, and then ...
Kyle Foster's user avatar
0 votes
1 answer
131 views

Dynamically generated html form don't allow jQuery bind("submit") method

I have the following dynamically generated form in which some checkboxes have hidden input fields which shown up when the user check that specific checkbox. I need few requirements here: To check at ...
Abdul Rahman's user avatar
  • 1,671
0 votes
1 answer
491 views

Getting duplicate text values while updating in yii2-dynamic form

I am using wbraganca / yii2-dynamicform. I have created a dynamic form, able to view the data. Now when I try to update it the value of my 1st text box is always the same for each record. Below is my ...
Moeez's user avatar
  • 494
1 vote
2 answers
412 views

How to show form fields while updating a record in Yii2

I am using wbraganca / yii2-dynamicform. I am able to create a new record. There are two models that I am using to create records. The data is saved into both of the tables. <?= $form->field($...
Moeez's user avatar
  • 494
0 votes
1 answer
102 views

HTML/Javascript message wont persist from dynamic form input/display

Working on learning JavaScript. I am working on creating a dynamic form and displaying the output. Below is a simple example. If I step through the script using the debugger tools: a)the form loads, ...
Jonn Mc's user avatar
  • 15
1 vote
2 answers
651 views

Jquery add 1 against each text input in yii2 dynamic form

I already have added one question related to it. But there is a little change this time. I have a readonly text input with a default value 1. <?= $form->field($modelTariffSlabs, "[{$i}]...
Moeez's user avatar
  • 494
0 votes
0 answers
432 views

Yii-2 dynamic form model update not working

I have created a dynamic form via using the widget wbraganca / yii2-dynamicform. I am able to create a record but when I try to update it, it's giving me an error. Below is my actionUpdate public ...
Moeez's user avatar
  • 494
0 votes
1 answer
1k views

Yii2- insert value to text input field on button click via jquery

I am working on yii2. I have created a dynamic form. I have some fields in it. <div class="pull-right"> <button type="button" id="addBtn" class="add-...
Moeez's user avatar
  • 494
-1 votes
1 answer
322 views

Yii2- Undefined variable: modelsTraiffSlabs

I am working on Yii2. I am creating a dynamic form using wbraganca / yii2-dynamicform. I have followed these steps and tried to create it. Controller public function actionCreate() { $model = new ...
Moeez's user avatar
  • 494
1 vote
1 answer
2k views

Angular 9 Multiple row dynamic form validation

I have created a simple dynamic, when the number of rows is selected from a drop down, the rows are created with validation error displaying in each field. Can anyone help me to display the validation ...
Merrin's user avatar
  • 11
0 votes
0 answers
425 views

Dynamic Form in Laravel

I would like to create a dynamic form in Laravel. First my form (This is the input field that already exists in advance.): <div class="input-group"> <input type="text" ...
sturm315's user avatar
0 votes
1 answer
57 views

StatefulWidget - FLutter

I need to edit this code, in a way to define only one variable widget which can be able to change on every state to a different widget type. I need to be able to make a dynamic form no matter what the ...
Moussa Nasreddine's user avatar
0 votes
0 answers
82 views

Google Map does not show up in Microsoft Excel Data Entry Form

I have created a dynamic data entry form in Excel with two fields, latitude & Longitude while double-clicking on the row of Lat & Long in the database it displays the location of the lat and ...
Tash's user avatar
  • 1
0 votes
1 answer
369 views

How to use onchange when the Id is generated Dynamically using Dynamic Form YII2

I have more than one dropdown list which id is generated automatically by wbraganca Dynamic Form, for example: First-dropdown will have ID such as: #formquestion-0-formquestiontypeid , Second-...
KevinH's user avatar
  • 1
1 vote
2 answers
1k views

How to design a Django API to handle a "Dynamic" form?

I have built an Angular form that contains a form array. So the user has the control to add fields or delete fields from the form. What I am trying to understand is how I can design a Django API that ...
Mahdy H.'s user avatar
  • 181
1 vote
1 answer
46 views

Jquery appending span

How can I append span when creating form dynamically using jquery? for (var i in formField["Data"]) { console.log("Dummy $$$$$ " + formField["Data"][i]["field_id"]); $("div#form1").append( $("...
Apurb Kumar Choudhary's user avatar
0 votes
1 answer
179 views

How to store selected checkbox's values in FormGroup in a Dynamic Form

I am getting form components from API. My code is able to generate HTML FORM from JSON. After generating the form and filling the data when I click on submit I am getting below JSON { "Enter Your ...
Abhi's user avatar
  • 624
0 votes
1 answer
200 views

Dynamic forms on angular

we're planning on upgrading our current website (asp.net worbforms) to a single page application using angular. I'm not yet that fully familiar with angular, but is dynamic forms doable on angular? (...
Mark's user avatar
  • 1