Hi Bob...
I am wondering if you can help... I have created a multi-page form that is functioning well - I can complete the form, view the data and even go back and update the resulting pages correctly in the database - by adding "cf_id=000" after the string... it all works perfectly. (In essence I am at about Page 300 of the Cookbook)
What I am having a lot of trouble getting my head around is building - a simple query that will call up my form - so that I can edit it... click submit and it will update the data. I feel sure the basics are there in the Cookbook... though I am not seeing them for the trees.
Can you reference the Cookbook in providing a solution?
Thanks in advance for your help
Simon
Hi Bob.
Well... no. In essence all I am trying to do is do a simple SEARCH and DISPLAY RESULTS (that were input from a Chronoforms multi-page form)
So... First name; Surname; Username
-> SUBMIT
= Email; Address; Date of Birth; Phone; etc etc.
(I am unsure whether I should be asking here or over at Joomla.) I only want to produce the string that gets me the "...... &cf_id=00" mentioned on page 300. (A simple search result; I will then place this result, into a mutlipage form that allows the Admin to edit the SPECIFIC data)
You probably already cover it ... though I am just not seeing it
Simon
Hi Simon,
A rather circular answer but where is the cf_id stored? How would you know which is the correct one? Is it linked to the user in some way?
Bob
hi Bob...
answers -
:: the cf_id is not the same as the Joomla ID; no. Should it be??? and
:: textareas as inputs!! I honestly did not look; the form was probably built on the 12 iteration of a form I liked, that I found in a client's website -😀 The whole thing will need to be re-written and ported to the clients site (it has the validated license)
Just regarding the "first and partial" result - I was hoping having the three fields would compensate... this all stems back to my original question (some weeks ago) about putting all the UserNames into a drop-down. ( Which prompts another question - I am full of them [hehe] - could that be adapted here??? )
Though let me go away and try this code you have suggested (thanks again); and see what results I can produce...
TIA, Simon
Hi Simon,
If it's data that is uniquely linked to a user then it usually makes sense to use the Joomla! user id as an index as it's easy to access.
The User drop-down could work here perfectly well.
The problem with searches that return multiple results is that you really need to show a list of possible results and then let the user pick the one that they want. This isn't too hard to do but this code doesn't include that intermediate step.
Bbo
Hi Bob
Its not working!
I am wondering if there is need to use the "Multi-Page" plug in at all. (It seems I am getting nowhere!!! 😟 )
Could I not just use a simple form/query to request the "cf_id" and then append it (somehow) to a form's URL?
That is - load all the "User names" with the >> e c h o JHTML::_('list.users'... etc; grab this 'selection' and simply append it to the form's URL (am I repeating myself!!!! It must be easy!!! though I am more comfortable with interface than with data)
Simon
(If its overly complex I am more than happy to buy you that beer for Christmas!)
Bob...
Can you be of any help; it would be appreciated. Outwardly it would seem simple enough.. a form to find the UserID (cf_id) and then open another form (in Edit mode) that has the User's details... can you be of any help? I am completely stumped after 3-4 weeks of it.
Thanks, Simon
btw. merry Christmas and the best to you for the new year
Hi Simon,
I confess that I'm completely lost about where the problem is. I'v been back through the thread and tried to make sense of it again.
You have a form 'mbr_UPDATE' that shows a list of members and returns the Joomla! ID of a selected member. That bit seems straightforward and seems to be working.
You have a second form 'mbr_Update2' that uses a value of the 'cf_id' parameter to extract the data for a particular member.
The cf_id parameter is not the Joomla! ID* so the problem is to link the two correctly??
I don't understand what the data is that yyou are using. For example I can find data for trish Delaware (cf_id=56), alphonse Mussen (cf_id=58), sylvia Henson (cf_id=60), albert Steiner (cf_id=62) but none of these names seem to appear in the member drop-down in the mbr_UPDATE form???
Does the user data table include the Joomla! User ID??
Bob
* The easy answer to this is still to use the Joomla! User ID to link to the two tables directly.
Hi Bob..
am back after a short break... now going back looking at all the forms - and letting the dust settle; seems I have a working complex... made-up of an extended membership REGISTRATION form - multiple page; the second page recognizing and POSTING some of the new Users details already submitted; and finally an editable DOCUMENT created with each completed form in a Category within "Contents" (The form is writing to the Contents db, the User db and also an extended Member database)
I am now about to get this "select a User" and edit the results form happening - via the Joomla User db
I will come back.. just felt I'd touch bases and let you know the progress - and that it hasn't become a lost cause quite yet 😀
Hi Simon,
Thanks for the update and good luck with the next steps.
Bob