display django fom from formset only when required - forms

This might be simple but not able to get the work done.
here is a modelformset using which specific # of forms could be displayed:
formfact = formset_factory(ModelForm,extra = count)
fset = depffact(prefix='new')
My question is:
how can i display single form a time,how can i modify it such a way that everytime user
clicks a button previous forms are validated and one more modelform is displayed.
i.,show form1,if asked for show #2,#3 etc
i tried keeping track of count and using that count but was not successful.Ideas most welcome

by mistake i asked similar question twice
but i did answer it in this post incase if you want to refer. if you have a better solution, appreciate you sharing it.

Related

How to copy edited google forms entries to another sheet - Keeping original response and edited

We are in the process of setting up a test for staff using google forms. It works great and I have enabled users to be able to edit their responses.
What we need the form to do is keep the original submitted data too so we can see how many questions the user got wrong and how many they got correct on a resubmit. Currently resubmitting the data overwrites the original. There are a lot of questions in the form so the user re submitting another would not work. Highlighting the ones they got incorrect and giving them a second chance is what I am after.
My thoughts were to copy the data to another sheet everytime either a new entry was made or when a form was edited.
I have not done much work with Google Forms or Sheets so I am starting from scratch.
Thanks,
Luke

Adding specific number of sections in a google form

When an user enters a number into a field (representing the number of persons in a group), I want to have a section of google forms to be multiplied that many times - one for each person. In each such section I need to enter their details. Anybody did something similar to this ?
I think what you're trying to do isn't possible (without using App Scripts) but I have built a little example of something that might work for you. Please see if this will work and get back to ASAP.
Pretty much it has a title page asks the user how many people they want to sign up. Then, depending on the answer, the form directs them to a section with the appropriate number of sign-ups.

count correct / incorrect answers after every verification

In moodle is it is possible to count correct/incorrect answers in Immediate feedback Test and show them in the quiz navigation panel?
at the end of the test there is a summary which count the correct answers, but how to show this in the quiz navigation panel after every question is verified?
The "quiz navigation panel" is a special fake block that is displayed as part of the quiz attempt page, it is not an addon or a plugin, it's part of Moodle's core. so, any solution for your question has to involve core changes. if you are willing to do so, you can either use mod/quiz internal questions status display mechanism:
https://github.com/moodle/moodle/blob/master/mod/quiz/attemptlib.php#L1580-L1597
mod/quiz marks with green all the questions that the student has submitted correct answer to. so you can use that mechanism to display the count yourself.
Pick up parts of the following code snipets:
Loop through the questions (slots):
https://github.com/moodle/moodle/blob/master/mod/quiz/attemptlib.php#L2114
And count the correct answers:
https://github.com/moodle/moodle/blob/master/mod/quiz/attemptlib.php#L2125
Make a new function from the above snipets or just add the above snipets after the following line:
https://github.com/moodle/moodle/blob/master/mod/quiz/renderer.php#L336
Hope it helps.

How to display and edit individual records on a form in Access?

I have built a table in Access that is populated by the end user with a form. Next, I would like the end user to retrieve a record and be able to edit the fields in form view.
I see stackoverflow user Hoops asked a similar question, excerpt:
"What I want to do is have the user select a record from the combo
box, which then populates the textboxes (I've already managed to do
this)."
His "already managed to do this" is what I need to know.
I tried using a combo box, but it did not populate the text boxes, and when I selected multiple columns to be displayed, the fields could not be edited.
I tried using a parameter query to retrieve a search record, but I could not get results to display in the form.
While I know I am supposed to ask specific answerable questions, what I really need to know is the method or strategy I should be using to retrieve a record and be able to edit the fields in form view. If I know the best method, I can usually figure out the tactical.
Thanks for any ideas.
Melissa
I suggest a split view form in Access. More info can be found here: http://office.microsoft.com/en-us/access-help/create-a-split-form-HA010075994.aspx

Simulate Form Submit with Symfony 2

I'm working with Symfony 2 and need some advice.
I have a Controller, which gets a form-request and searches the database for matches and renders the results (so it's just a basic search).
Now I would like to redirect to this controller but without coming from a form.
To be more specific:
I'm on the search-page, fill out the form and hit the search button -> I get results for my search.
I'm somewhere else and want to delete a labelCategory of a book -> If some books still use this labelCategory, I want to get search results for this labelCategory.
My only idea so far is, to simulate the form submit somehow, but I didn't find out how to do it.
I'd be happy for every help of you ;)
You don't need form submit at all. Just put logic of searching to separate class. Than you can it in any controller you want. Maybe Service Container doc can help to