Skip to content

Conversation

@raphaeldas
Copy link
Contributor

What does it do?

Moves the item parameter defaultValue to the right place of the custom field options.

Why is it needed?

Fix the docs.

the defaultValue property must be placed in the item object and can be type string or boolean
@raphaeldas raphaeldas requested a review from pwizla as a code owner July 2, 2025 10:31
@vercel
Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 10:37am

@pwizla
Copy link
Collaborator

pwizla commented Jul 2, 2025

Hi @raphaeldas, and thanks for the contribution.
I noticed that your fork has v4 in its branch name. Is your fix for the Strapi v5 or the Strapi v4 documentation?

@pwizla pwizla self-assigned this Jul 2, 2025
@pwizla pwizla added this to the 6.6.3 milestone Jul 2, 2025
@raphaeldas
Copy link
Contributor Author

Hi @raphaeldas, and thanks for the contribution. I noticed that your fork has v4 in its branch name. Is your fix for the Strapi v5 or the Strapi v4 documentation?

Hello @pwizla! 😃

The change is intended for the Strapi v4 documentation, but it also seems to apply to version 5: https://docs.strapi.io/cms/features/custom-fields#options
However, I did not test it.

@pwizla
Copy link
Collaborator

pwizla commented Jul 4, 2025

Perfect, thanks, @raphaeldas!
I'll merge it right now into v4 docs and will test it for v5 docs when I'm back from vacation 😎

@pwizla pwizla merged commit ffa907f into strapi:v4 Jul 4, 2025
3 checks passed
@pwizla pwizla removed this from the 6.6.3 milestone Jul 4, 2025
@raphaeldas raphaeldas deleted the patch-2 branch July 5, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants