- This topic is empty.
- AuthorPosts
-
- 11/17/2010 at 8:18 am #5124
AnonymousParticipantAlso I need instructions to allow the user to keep adding items that are attached to the first list. For example, List 1 contains the general information for the request, and List 2 would be the items associated with the item generated in List 1. Once the user has submitted one item it should give the option to ask the user 'Would you like to add additional items to this request?'
Any help on this would be greatly appreciated. Thank you.
- 11/19/2010 at 1:29 am #5121
AnonymousParticipantHi Anthony
I would assume we use qListForm as “NewListItem” type for creating a new List Item thus having a new List Item ID and we want to pass this to anther form with the ID prepopulated. Please follow the steps below to make it work:
1. On the first form, configure ViewedList and DisplayFields property, set Form Type as “NewListItem”
2. On the Display tab, specify Next Page Url property to point to the second form page which will receive the new ID and make sure you pass the new ID as parameter using field expression, such as
mypage.aspx?MyID=<%ID%>
(see screenshot below)3. On the second form, configure ViewedList and DisplayFields property, make sure the field that receives the new ID is configured of type Consume Value from a Http Request and specify the Parameter Name, for exampe, “MyID”.
So hope this helps.
- 11/19/2010 at 1:49 am #7102
AnonymousParticipantHi Anthony
This requirement can be accomplished with qListForm. Initially I thought about using Custom Actions which provides the most flexible and powerful means to add behaviors. However it is much involved with custom coding and may not generate the desired result. So my suggestion is to follow a simple workaround.
As I posted earlier regarding your first question, you would need to have the same settings like that with two pages containing the qListForm. However instead of directing the first page directly to the second page, you would introduce a 3rd page as the middle man. On this page, you would display the message "Would you like to add additional items to this request?" with button "Yes" and "No". Based on the answer, it redirects the page either to the first page to allow user add additional item or to the second page to continue filling out other details of the same item.
This invovles a little bit HTML code and javascript and it is certainly doable.
Thanks,
- 11/19/2010 at 2:18 am #7103
AnonymousParticipantNot sure why Xien’s answer came through email but didn’t post. But here’s the solution.
Hi Anthony
I would assume we use qListForm as “NewListItem” type for creating a new List Item thus having a new List Item ID and we want to pass this to anther form with the ID prepopulated. Please follow the steps below to make it work:
1. On the first form, configure ViewedList and DisplayFields property, set Form Type as “NewListItem”
2. On the Display tab, specify Next Page Url property to point to the second form page which will receive the new ID and make sure you pass the new ID as parameter using field expression, such as
mypage.aspx?MyID=<%ID%>
(see screenshot below)3. On the second form, configure ViewedList and DisplayFields property, make sure the field that receives the new ID is configured of type Consume Value from a Http Request and specify the Parameter Name, for exampe, “MyID”.
So hope this helps.
- 11/19/2010 at 2:43 am #3969
AnonymousParticipantCan someone point me to an example of after submitting one form and getting an ID, that ID would pass the user to another form and autopopulate a reference field for the ID?
any help is apprecaited.
- 11/19/2010 at 2:43 am #7106
AnonymousParticipantHi Anthony
This requirement can be accomplished with qListForm. Initially I thought about using Custom Actions which provides the most flexible and powerful means to add behaviors. However it is much involved with custom coding and may not generate the desired result. So my suggestion is to follow a simple workaround.
As I posted earlier regarding your first question, you would need to have the same settings like that with two pages containing the qListForm. However instead of directing the first page directly to the second page, you would introduce a 3rd page as the middle man. On this page, you would display the message “Would you like to add additional items to this request?” with button “Yes” and “No”. Based on the answer, it redirects the page either to the first page to allow user add additional item or to the second page to continue filling out other details of the same item.
This invovles a little bit HTML code and javascript and it is certainly doable.
Thanks,
not sure why your replies are not getting posted. This all worked, but on the HTML page how do I grab the variable from the URL and place that into a link on a web content editor part? I have this as my link but its not correct obviously…
- 12/09/2010 at 9:58 am #7067
AnonymousParticipantThis works great, now I have two follow up questions.
1) There can be multiple second forms tied to the first form. After you submit the second form I have a page that says ‘Would you like to submit another item?’. How do I grab the specific ID from the query at the top of the page and have that used in a Content Editor Webpart. For example the YES link on the Content Editor webpage has to bring them back the NewItem Form 2 page with the correctID.
2) Is there a way to have both Form 1 and Form 2 on one page, and as you submit items on Form 2, it would automatically start a new item below, but keep Form 1 the same up top on the same page?
- 12/09/2010 at 10:23 am #7072
AnonymousParticipantAnother follow up. How do I grab a variable from qListView and tell it to pass it to the NewFormPage.
- 01/18/2011 at 12:05 pm #7080
AnonymousParticipanti would like to know how to do this as well,
have you had any success with this?
-
- AuthorPosts
You must be logged in to reply to this topic.