Questions tagged [field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

Select existing entries for a matrix-type field rather than creating new ones per entry

I have created different pages as entries. On each page I show a list of benefits of my company which are generally the same for each page but I would like to be able to customize the benefits for ...
flip's user avatar
  • 105
1 vote
1 answer
30 views

Add number variable to template with prefix, suffix and currency

I have added a number field with prefix, suffix and currency symbol: How can I add a variable to a template which shows the number with prefix, suffix and currency? I tried the following which didn't ...
flip's user avatar
  • 105
1 vote
1 answer
31 views

How to get field values by specific field type from all Entries?

I am trying to get all values of a specific field type from all entries. (ex.: craft\fields\PlainText) Is there an easy way to get these values ?
antdev's user avatar
  • 135
0 votes
0 answers
33 views

Is it possible to change built-in field like Table with a module?

Is it possible to change behavior of in-built field with a module? I am trying to change // Apply static translations part of _normalizeValueInternal function in Table.php https://github.com/craftcms/...
Foxtrot's user avatar
0 votes
1 answer
39 views

Issue with Multiselect field and related entries

I am having an issue outputting news stories that are filtered via a multi-select field, newsCategory is the the multi-select fied handle. Here is my code <div class="search-results search-...
bhackett's user avatar
  • 127
2 votes
1 answer
80 views

Control Panel Date Picker: Inconsistent Date Format

In my plugin I have a datetime field defined in the settings template: {{ forms.dateTimeField({ label: "Ends at"|t('optimum'), instructions: experiment.isNew ? 'Defaults to 30 days ...
Matanya's user avatar
  • 472
0 votes
0 answers
13 views

How to prevent advanced relation field setting «Relate entries from a specific site?» getting ignored?

I have a relation field with the advanced setting «Relate entries from a specific site?». When the user initially clicks on the field it works fine, on a second attempt the setting «Relate entries ...
Marco's user avatar
  • 11
1 vote
2 answers
196 views

Can't access values in Typed Link Field

I'm using this plugin/fieldtype https://github.com/sebastian-lenz/craft-linkfield v1.0.25 on Craft 3.7.61. When I try to output some of its values, for example: {{ item.button.getUrl() }} I get no ...
4midori's user avatar
  • 656
1 vote
1 answer
102 views

Populate changes to a multi-select field across all entries without losing current values

Is there a way to make a change to the value of a multi-select field, leaving the labels intact, and update the field across all the entries while preserving the current selections? I have a multi-...
Eric Anderson's user avatar
1 vote
1 answer
95 views

Get custom fields data on GraphQL

I have several custom fields on craftcms (cp/settings/fields), and some of them are dropdowns. I'm trying to get this custom fields data (for example the dropdown options) on graphql, because we are ...
Nairo Granados's user avatar
1 vote
1 answer
26 views

Assets display changed, cutting off folders

I am not yet able to upgrade to Craft 4 due to some plugins used regularly not being ready, but on updating 3 to a newer version a few weeks ago, noticed the way asset folders were displayed - both on ...
Emma Swann's user avatar
2 votes
1 answer
186 views

Check which field at which sections is used

It is useful sometimes to have a list, which field at which sections/globals/categories/neo-fields etc is used - so that one can delete or reuse some fields, or change some field settings and keep in ...
Alex Kuzmin's user avatar
1 vote
1 answer
206 views

changedFieldIndicator change on every commit

When we're making changes to the Craft config, changedFieldIndicator is often the culprit of many changes, and makes pull requests "larger" or more complicated than they need to be. Is this ...
Lee's user avatar
  • 173
1 vote
1 answer
128 views

Fetch Category Field Value on Entry Element

I am fairly new to Craft; I have an entry type with a custom field that is a Categories field. I am trying to use GraphQL to return the fields on my entry, including the category field value. Ex. my ...
Adrienne W's user avatar
1 vote
1 answer
65 views

Hide/show tab dependant on Craft sites

I have multiple sites, in a Field Layout of section entry type, I have tab A and tab B. I want tab A to show in site A, but hide it(including all the fields under it) in site B. Is there a way to ...
Thomas's user avatar
  • 69
0 votes
1 answer
126 views

How to add Field to Template hook cp.entries.edit.settings and save value to entry?

I'm trying to show a custom lightswitch field inside the right panel on the edit page of an entry and saving its state to the entry when the user clicks on save. My form template looks like this: <...
Martin Lüpold's user avatar
0 votes
1 answer
80 views

Adding multiple blocks for matrix in form

I am using a matrix field for registered users on my site. I want to be able to add a certain amount of matrix blocks to each users on registration (with hidden input), so I can re-use them later on. ...
aren's user avatar
  • 79
1 vote
1 answer
114 views

Craft 4 - Upgrading Plugin to support Condition Fields

I've got a plugin that uses field layouts. I was asked about Craft 4 Conditional Field support so I went away to investigate. From what I gathered so far, the toggling of conditional fields happens ...
Sean Delaney's user avatar
1 vote
1 answer
99 views

Matrix field entry link corrupted

Some of my links coming from a matrix field with entry became corrupted. Anyone had this before and knows how to fix it?
aren's user avatar
  • 79
3 votes
1 answer
371 views

How to get column name of an entrie's field

I want to query some entries in a section. I am able to write a query using a GET Param as a filter on the title field. If I want to query a custom field however I need to know the precise column ...
Aram Loosman's user avatar
3 votes
1 answer
420 views

Whats crafts best practice when having to reuse fields

I'm looking for a way to do rapid development (i.e. not manually using the UI to create one field at a time). So if you have a page which requires multiple similar fields you can quickly add them? ...
Wally's user avatar
  • 343
2 votes
1 answer
205 views

Custom Field layouts

So many times im at odds with the layout of Craft Fields in the CMS, where from a usability and user interaction stand point I feel the layout can be way better and even mimic the front end result. ...
Wally's user avatar
  • 343
1 vote
1 answer
63 views

The craft way of creating fields through code?

so I am new to Craft CMS, and would like to understand the Craft developer workflow. Currently I have been developing on EpiServer using C# in Visual Studio. We have a dev, staging and production ...
BrokenCode's user avatar
1 vote
1 answer
373 views

Field dropdown - default value is not working in CMS

maybe this is a weird question but I have a dropdown field with values from 1 to 10, and set 4 as a default value. The thing is: I edit my entry and when I see my dropdown the value is number 1, but I ...
suhkha's user avatar
  • 121
1 vote
1 answer
110 views

DIsplaying Field Label override on front end

In a Craft field layout, you can override the label for a field just for that layout/tab. However, when displaying a list of fields on the frontend, I can't find how to get that overridden label, ...
James's user avatar
  • 113
0 votes
0 answers
210 views

internal server error when creating new field

whenever i try to save a new field I get an internal server error in the backend of craft 3. This happens whenever i want to create or modify a field that has an input like date, plain text, reactor......
user12636's user avatar
1 vote
1 answer
98 views

Is there a query field?

In Craft, is there a field that allows the user to create a custom query in the back-end? Something similar to the filters in Wordpress' query loop block? https://wordpress.org/support/article/query-...
Aron15's user avatar
  • 35
1 vote
1 answer
46 views

Default field on any single pages

Not sure if I'm asking this question well, but I'll try... is there a way to have a field appear by default in all my single page? Currently whenever I create a new single page I have to manually add ...
mauricio's user avatar
  • 187
1 vote
1 answer
643 views

How to update a User's Entries custom field only once just after save?

From a custom module, I'm listening to EVENT_AFTER_SAVE_ELEMENT events, to be sure to get the Entry ID after save: Event::on( Elements::class, Elements::EVENT_AFTER_SAVE_ELEMENT, function (...
Romain P.'s user avatar
  • 1,818
1 vote
1 answer
136 views

How to get rules of conditional fields values on front-end, using Reasons or another solution?

I'm building a front-end form, where I'm displaying on front-end my fields following their layout within the CP: {% set section = craft.app.sections.getSectionByHandle('handle') %} {% set ...
Romain P.'s user avatar
  • 1,818
0 votes
1 answer
51 views

How to get field widths when using getFieldLayout()?

I'm trying to show all my Channel's fields on front end, as they are shown on the CP: {% set section = craft.app.sections.getSectionByHandle('handle') %} {% set fieldLayout = section.getEntryTypes[0]....
Romain P.'s user avatar
  • 1,818
1 vote
1 answer
123 views

Get raw/unformatted field values?

Is there a way to get raw/unformatted values for a field before they're passed to the field's normalizeValue function? That is, get the value close to how it's stored in the database? I haven't found ...
MoritzLost's user avatar
  • 11.3k
1 vote
2 answers
196 views

Display entry data dynamicly in textfield

i have some data in my entry like productnames "Nike", "Puma" etc. which are headings i diplay in my template. {{ productnames1 }} "some text the contenteditor maybe wants do add" ...
Nick Langer's user avatar
1 vote
1 answer
185 views

New assets field not showing up for some users

I've added an assets field to an existing channel that shows up fine for me on both the new entry and editing existing entries, but it's not showing up for some users. I've cleared cache in Craft ...
doctorgloom's user avatar
1 vote
1 answer
69 views

Use same handle for different fields on different entry types

I've got two entry types: blog and job. Each has a category field but different category groups: blogCategories and jobCategories. I would like to write a Twig include to accept either a blog or a job ...
Tamlyn's user avatar
  • 183
2 votes
1 answer
145 views

Removing or hiding certain fields from the CP new entry for a specific user group

I'm trying to make some fields unavailable for a certain user group when they create or edit a new entry. These fields should only be available to admin users. I had implemented this by extending the ...
valley's user avatar
  • 65
1 vote
0 answers
105 views

Embedding code into an entry

I need to embed some coding into an entry, but I'm unsure how to do it. I understand that I need to put the code into a Plain text field, so I've created a Plain Text field in Settings, but I now don'...
user11764's user avatar
1 vote
1 answer
80 views

Best Practice on how to build a Pricing Page on CraftCMS

CraftCMS gives us so many ways/options on how to build pages that I'd love to see what people are doing with their pricing pages! I'm planning on building something similar to Amilia.com or Slack.com. ...
mateostabio's user avatar
1 vote
1 answer
79 views

Getting average of number field values

I'm getting close to finishing my first project on Craft CMS but I have one problem. I'm using number fields to rate items in my entries. It looks like this: I will have around 6-7 fields and I need ...
Lukas Snarskis's user avatar
0 votes
0 answers
37 views

Need to populate new field based on existing data

Say I have a section called "Stores" that has an existing field called "Store Hours". The client has populated the store hours for 1000 some stores. Now, however, it seems what the ...
kenyabob's user avatar
  • 121
2 votes
1 answer
1k views

What's the difference between Neo and Matrix fields?

Im a bit new in Craft CMS But so far to me, seems like both allow the user to create multiple blocks of content
Paloma Martinez's user avatar
1 vote
1 answer
226 views

How to add target to link within field instructions?

I don't see anything in the documentation about how flexible the instructions fields are, as they use Markdown syntax. It's not clear how to add a target to a link, for example.
4midori's user avatar
  • 656
1 vote
1 answer
167 views

Showing different field layouts for entries within the same structure

I set up a structure for pages that looks like this: - All Services - Service 1 - Service 1 subpage a - Service 1 subpage b - Service 2 - Service 2 subpage a - Service 2 subpage b ...
Jake1293's user avatar
  • 159
1 vote
1 answer
254 views

How to make field instructions show as tooltip?

How to turn show as the following style
Parry Huang's user avatar
1 vote
1 answer
266 views

Get field type in templates

I need to get the field type in my templates like I used to do: field.getField.type but that does not seem to be working in Craft 3 anymore. The result is always null. It also seems that the »type« ...
Marcus Scheller's user avatar
2 votes
1 answer
282 views

How to search based on a Multi select category field in Craft 3?

I have a blog section with multi select categories. I want to filter all the blogs based on that multi select categories in the website. When I tried .search('category:ui-ux OR category:web-designs')...
Rakhi Vijayan's user avatar
1 vote
1 answer
2k views

Uploading Lottie animation files with images

For anyone who doesn't know what Lottie is, it is a video player created by the AirBnB team that lets you play vector animation exported from Adobe After Effects. It exports as json-files that you can ...
Stig Melón-Bratvold's user avatar
0 votes
0 answers
90 views

Add additional entry fields to backend search

The search field in the craft backend entry section searches the title and slug field by default. Is it possible to add custom entry fields to this search function (in my case e.g. a custom item ...
Stefan's user avatar
  • 1
2 votes
1 answer
124 views

"Field Limit is too big for your chosen Column Type" error on already existing fields when updating matrix

I'm getting the following error when I'm trying to update a matrix: "Field Limit is too big for your chosen Column Type."" I'm trying to add a new block type but this error keeps getting up on ...
valley's user avatar
  • 65
2 votes
1 answer
193 views

How get entries by sources in a frontend fieldlayout?

I have multiple entries fields that I want to use in the front-end. In the field settings I'll set up a sections source for each field. On the frontend I want a dropdown select box with all the ...
Maarten Heideman's user avatar

1
2 3 4 5 6