Forums

Editable forms...

gyomtov 23 Apr, 2008
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.
GreyHead 24 Apr, 2008
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
wcsconcierge 24 May, 2008
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
GreyHead 25 May, 2008
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.
wcsconcierge 29 May, 2008
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.
Max_admin 30 May, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.