Forums

Hide some elements from form for public users

am_soumya 12 Dec, 2012
Hi,


I am using CFv4 version in my joomla 2.5,

Following are my queries:

1) Now I have a form with four tabs. is there anyway to hide some elements for public users?????

2) I want to change the look and feel of a tabs in the form and entire form style. How do I do it?

3) I want to save the filled data to database then only it should jump to next tab. Here I just given a custom button to jump across tabs, so it just saves the data which i have submitted in browser only not on db? How can achieve this?

Thanks in advance.

Thanks and Regards,
Soumya
GreyHead 12 Dec, 2012
Hi Soumya,

You can hide elements from Public users by checking the Joomla! User object to see if the user has an id set. You can use Conditional PHP in the form Preview tab using Custom Element elements but it's probably simpler to have two forms and direct the user to the appropriate one at the beginning.

You can save between tabs if you use Ajax to submit the form; I've never done that but I think ti is possible. The easier solution is to use a multi-page form and to save between pages.

Bob
This topic is locked and no more replies can be posted.