Advertisement

How to declare default value in customizing a field?

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
irenuyam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 188
Joined: Mon Mar 11, 2019 8:30 am

How to declare default value in customizing a field?

Post by irenuyam » Wed Jun 12, 2024 9:39 am

Hello.
We wanted to add a new field in the User Registration of Joomla and I am trying out the option to add a field.
But when I tried to register as a user, an error appears that says missing default value. I have been searching how to declare the value but I can't find one.
Here is a screenshot of what I did:
FIELD J4.JPG
Help.
Thanks.
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Wed Jun 12, 2024 9:44 am, edited 1 time in total.
Reason: mod note: retitled, the forum rules do not allow Help or SOS in the subject

Advertisement
irenuyam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 188
Joined: Mon Mar 11, 2019 8:30 am

Re: How to declare default value in customizing a field?

Post by irenuyam » Fri Jun 14, 2024 8:33 am

SOS... anybody? The documentation I found from Joomla about custom fields is not so clear, so I still did not find a solution for this.
Please.

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3008
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: How to declare default value in customizing a field?

Post by SharkyKZ » Fri Jun 14, 2024 8:44 am

Enable "Edit Custom Field Value" permission in Users component.

irenuyam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 188
Joined: Mon Mar 11, 2019 8:30 am

Re: How to declare default value in customizing a field?

Post by irenuyam » Fri Jun 14, 2024 11:50 am

SharkyKZ wrote: Fri Jun 14, 2024 8:44 am Enable "Edit Custom Field Value" permission in Users component.
Hi. I already did.
But it keeps saying no default value. I tried using List, and it is the same error.
So where and how should I declare the default?

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3008
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: How to declare default value in customizing a field?

Post by SharkyKZ » Fri Jun 14, 2024 12:29 pm

Can you post the exact text or screenshot of the error?

irenuyam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 188
Joined: Mon Mar 11, 2019 8:30 am

Re: How to declare default value in customizing a field?

Post by irenuyam » Tue Jun 18, 2024 11:24 am

SharkyKZ wrote: Fri Jun 14, 2024 12:29 pm Can you post the exact text or screenshot of the error?
Here it is (sorry it is in Spanish):
error default value.JPG
I tried the radio, list but nothing seems to work and I can't find an example of how and where to declare the default value.
Help.
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31163
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: How to declare default value in customizing a field?

Post by Per Yngve Berg » Tue Jun 18, 2024 12:10 pm

The values should be numbers.

AP=0
ACIT=1

The field Default Value "0"

irenuyam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 188
Joined: Mon Mar 11, 2019 8:30 am

Re: How to declare default value in customizing a field?

Post by irenuyam » Tue Jun 18, 2024 2:13 pm

Per Yngve Berg wrote: Tue Jun 18, 2024 12:10 pm The values should be numbers.

AP=0
ACIT=1

The field Default Value "0"
I already placed 0 as default value but still it gives the same error.
Please check this configuration for "List"-type in the "General" tab:
list_field.JPG
What is wrong with this?
Do I have to put something in the "Options" tab?
You do not have the required permissions to view the files attached to this post.

webmasterab
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Sep 24, 2017 12:49 pm

Re: How to declare default value in customizing a field?

Post by webmasterab » Sun Jun 23, 2024 7:43 pm

perhaps a strange option, but if you now set the text of the option to the default, it works

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 4.x”