Questions tagged [repopulation]
19 questions
6
votes
3 answers
ASP.NET MVC Form repopulation
I have a controller with two actions:
[AcceptVerbs("GET")]
public ActionResult Add()
{
PrepareViewDataForAddAction();
return View();
}
[AcceptVerbs("POST")]
public ActionResult Add([GigBinderAttribute]Gig gig,…

iasksillyquestions
- 5,558
- 12
- 53
- 75
3
votes
2 answers
On CodeIgniter, how to repopulate a form only with correct values?
Imagine a form like this:
2
votes
1 answer
jQuery not updating SOME spans
I am building a web-based tool for the role-playing game GURPS. Data is maintained in several XML files that are loaded into arrays. Based on changes the user makes, data is re-populated into various spans, inputs and dropdowns from the arrays. …

user1889833
- 23
- 4
1
vote
2 answers
Repopulating objects with a click
I'm attempting to repopulate my radio buttons with the next question that is stored in my array. I'm unsure of how to remove the current question and repopulate the radio buttons with the next question.
var questionsArray = [];
//Create counters…

Devon Deason
- 73
- 2
- 10
1
vote
1 answer
retain values on postback in Asp.net mvc
I have a data in following pattern;
as shown in image attached,
I want to repopulate all these values and controls on Postback.
I am using asp.net MVC
If i should use a list then how can i tackle the multiple values of subject to be saved in one…

Dragon
- 1,078
- 2
- 9
- 31
1
vote
1 answer
Struts 2 Fields Validation with dynamic forms
I have Struts 2 application.
I have a jsp file which looks like below

Soumya
- 1,833
- 5
- 34
- 45
1
vote
1 answer
Populating and repopulating select dropdown codeigniter
I would like to populate a select dropdown using codeigniter form_dropdown for that I have written below code in my view:
$experience = array(
"" => "- Min Exp -",
"0" => "Freshers & <1…

Mohammed Sufian
- 1,743
- 6
- 35
- 62
1
vote
1 answer
Struts2 Repopulate form information when validation fails
I have a page with a form that is prepopulated with user information. It is a user profile page. I have validation for some of the fields in place but currently my validation method is just hard coded to execute addFieldError("exp", "Cats"); where…

user2607126
- 23
- 2
- 6
1
vote
1 answer
how to repopulate form fields for a rails form_for after submit?
I have this form and tried many aproches to no avail to repopulate form fields for a rails form_for after submit. Whats the correct way to do it? Maybe just overlook in the docs but no good reference on how to to this :(
The only non working…

Rubytastic
- 15,001
- 18
- 87
- 175
0
votes
2 answers
Struts2 OGNL runtime expression
I am validating list of objects. In order to show users what they typed wrong, I need to repopulate fields on conversion error. I read that in order to repopulate fields value on page I need to do something like this:

batbaatar
- 5,448
- 2
- 20
- 26
0
votes
1 answer
How to re-populate textarea with the user's comment, after form is resubmitted? (Using Html & PHP)
A form loads and user enters their data. Form is submitted, with unrelated errors and the form page needs to be reloaded. I want to re-refill (re-populate) the Textarea with the user's prior comment data.
I figured out how to repopulate fields of…

curls
- 382
- 1
- 3
- 16
0
votes
1 answer
The header value of the struts2 select tag does not repopulate when validation fails
I have the following tag for a drop down list of states and a default state determined by defaultStateId.

ponder275
- 903
- 2
- 12
- 33
0
votes
1 answer
Re-populate dynamic generated checkbox if it fails in validation in an edit form in Codeigniter
I try form validation in codeigniter.
how Re-populate checkbox which value come from database if it fails in validation in an edit form in Codeigniter.OR
How
Title

Chintan Mathukiya
- 395
- 5
- 26
0
votes
1 answer
Repopulating checkboxes in form (laravel)
I am yorking in a laravel application.
I have a form where I want to display checkboxes with javascript.
I am getting the values of the checkboxes from the database.
Here is my code:
$.ajax({
url: '/home/show',
type: 'GET',
data: 'id=' +…

user3481058
- 313
- 2
- 4
- 18
0
votes
3 answers
How do I make these fields autopopulate from the database?
I have an array, which holds values like this:
$items_pool = Array (
[0] => Array ( [id] => 1 [quantity] => 1 )
[1] => Array ( [id] => 2 [quantity] => 1 )
[2] => Array ( [id] => 72 [quantity] => 6 )
[3] => Array ( [id] => 4 [quantity] => 1 )
[4]…

dmanexe
- 1,034
- 4
- 16
- 40