Buy Now
Sign in

How to add a custom field in user profile in Joomla?

abhishekpatil , March 19 at 09:04
a
abhishekpatil

Hello Genius,
I want to add custom field in user profile in Joomla with custom id so that no longer need to take input from user again and again!
Is there any way?

Thank you in Advance, special thanks to GreyHead.

calculus00

Hello abhishekpatil,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I add a User to a User Group?
P.S: I'm just an automated service ;)

I'm an automated service, my answers may help, but they may not be accurate.

a
abhishekpatil

Thanks you Calculus00 for your quick help. Here I forgot to mention that I am using Joomla 3.6

I want to assign roll number for each student. If it is added with their profile, they will no longer need to type again and again.

Is there any way to add custom field! Not user group.

Thank you

GreyHead

Hi abishekpatil,

See the Joomla! docs JUser setParam() method. The code will be something like:

				<?php
$juser = \JFactory:;getUser();
$juser->setParam('param_name', $roll_number);
$jUser->save();
?>

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much