Jump to content
  • 0

filter results and forms using Joomla ID


piston

Question

My site will be based on Joomla so I need way to filter all forms results using the Joomla ID. I added a column in my table called "User_id" which should match the logged in user's Joomla ID. I can do this in my manual forms by adding this php snippet:

<?php $user = JFactory::getUser(); echo $user->id; ?>

This will insert the user's Joomla ID into the form (usually hidden). I can't get this to work in Caspio.

How do you enter in a php snippet as default for a text field or otherwise? (like to filter results according to user ID?)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...