Editable forms...

Shows some Tutorials

Editable forms...

Postby gyomtov on Wed Apr 23, 2008 11:57 pm

Hi all.

It seems like a very advanced component but I still try to understand if it has the feature that I need.

I need my customers to keep their info updated. so the form has to pickup value from db that belongs to each user. any way to achieve that ?

Thanks in advance for any help!

Best regards,
Guy.
gyomtov
Fresh Boarder
 
Posts: 1
Joined: Wed Apr 23, 2008 4:48 pm

Re:Editable forms...

Postby GreyHead on Thu Apr 24, 2008 1:00 am

Hi Guy,

Yes, you can do this, you'll need to save the form data to a database table including the userid.

Then at the start of the form check the id of the current user, look it up in the table and, if they have existing data populate the form fields using the input 'value' attributes.

That's not quite as difficult as it sounds though.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Editable forms...

Postby wcsconcierge on Sat May 24, 2008 3:49 pm

This is exactly what I need to do, but I'm not sure how to approach it. This would make a great advanced tutorial subject.

How do I retrieve the users login id and data entry date in the original form and put them in hidden fields on the form?

How do I call up a form (based on the user ID) and then populate the fields?

Need a serious walk-through on this one.

Thanks in Advance
Di
wcsconcierge
Fresh Boarder
 
Posts: 6
Joined: Sat May 24, 2008 3:31 pm

Re:Editable forms...

Postby GreyHead on Sun May 25, 2008 7:27 am

Hi Di,

Which version of Joomla are you using as the native code is quite different between 1.0.x and 1.5.x?

Bob

Later: read another post and see that you're using 1.5 and that you found the $user code. Ask again if you still need help with this.
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Editable forms...

Postby wcsconcierge on Thu May 29, 2008 3:18 pm

Hi there, I am using Joomla 1.5.3, and I would still appreciate a walkthrough. Maybe I can write up a tutorial after the fact for you.
wcsconcierge
Fresh Boarder
 
Posts: 6
Joined: Sat May 24, 2008 3:31 pm

Re:Editable forms...

Postby admin on Fri May 30, 2008 11:52 pm

Hi wcsconcierge,

search the forums for $user and JFactory, the issue has been discussed recently, if you didn't understand something then post at the other post with the code again!

Cheers

MAx
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 2323
Joined: Mon Aug 14, 2006 5:29 am


Return to ChronoForms How To

Who is online

Users browsing this forum: No registered users and 2 guests