Help with db record loader

atreu59 15 Feb, 2012
Hello:

I'm using v4 and have been playing around with the db record loader tutorial. I created a form. Let's call it Results1. I can manipulate the URL and see the values in my table loaded in the form. It works great, however I'm having trouble generating the url with the search parameter.

I'm trying to use 2 chrono forms together. In another form, call it Search1, the user enters an ID that's assigned to them and clicks submit. I want the submit button to take the user to the Results1 page where the value they entered is in the URL so they can see the values.

I've tried different actions, and I can get it to go to static pages, but can't make it take the value from the field and put it in the url.

Does anyone know the proper action that will take a url, concatenate your parameter name, and assign it the value the user has entered?

Any point in the right direction would be greatly appreciated. I've tried searching the forum but not sure what I should be searching for.

Thanks!

Chris
GreyHead 15 Feb, 2012
Hi Chris,

If you don't need the first form to do any processing then you can set its Submit URl to the second form and it will pass the data using 'post' this should be picked up by the DB Record Loader OK.

If you need the first form to process data then you can use the ReDirect URL action to build a URL including the data and the Redirect User action to do the ReDirection - this should be the last action in the event.

Max has also added some code for paged forms in the latest release; I'm not sure exactly how it works but I think it will let you reload the same form and show different HTML.

Bob
atreu59 15 Feb, 2012
hahahahhaah! That was it!

The combination of redirect URL and redirect user actions did the trick!

Thank you so much!
This topic is locked and no more replies can be posted.