Questions tagged [field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 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 ...
1
vote
1answer
55 views

How to make field instructions show as tooltip?

How to turn show as the following style
1
vote
1answer
27 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« ...
1
vote
1answer
32 views

Store phonetics in plain text field

I need to store phonetics for word definitions in a plain text field. An example would be something like "Craft Website" => \ ˈkraft ˈweb-ˌsīt \, like you'd see in a dictionary. If I try saving \ ...
1
vote
1answer
38 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 ...
1
vote
1answer
25 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')...
0
votes
0answers
16 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 ...
1
vote
1answer
18 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 ...
1
vote
1answer
20 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 ...
1
vote
1answer
16 views

Outputting image assets with flickity

I'm trying to use flickity to create a draggable gallery on a single entry template, but I'm having issues with the output. In the backend it looks like this. A field using multiple assets. Without ...
1
vote
1answer
9 views

Matrix-field with a category-field to output category-title on single entry page

Me and categories, always giving trouble :) On blogs, we are using a matrix field and in one of the matrix-types, I have a category field. This is to output the title of the category. {% extends "...
1
vote
1answer
23 views

How get field type in field layout

I'am building a website (craftcms 3.4+) where I'll need frontend entry editing. Therefore I'll need the fieldlayout of an entry. This is what I'll have: {% for tab in entry.fieldLayout.tabs %} ...
1
vote
1answer
14 views

Categories field limit doesn't disable Add a Category button

I set the Branch Limit for a Category Field Type to 1, but after adding one category, the Add a Category button is still active. Shouldn't it be disabled after reaching the limit? Thanks!
1
vote
3answers
62 views

Execution timeout problem when trying to add new field

I've been having some problems since I've updated yesterday to craftcms v3.4 (was 3.3). When I try to add a new field via the admin, it takes an enormous amount of time (almost 5min, had to raise the ...
4
votes
1answer
1k views

How to clear the database of unused fields?

I have one section with different entry types. One entry type uses two matrix fields, another one only one, and so on. Since the frontend layout is always the same, I use one template for the whole ...
1
vote
1answer
82 views

Fields Missing. Gone from Database as Well as Control Panel

Recently the organization I work for started a podcast and wanted to add a section on the site where people could find some information about the podcast, some links to subscribe, and more details ...
1
vote
1answer
36 views

Impossible to access an attribute on a null variable - on the one() method - all() works!

First question - but I think this is a bug (not my fault). I have entries/pages (a structure) - one parent (product overview) with children (products) I have one category group with categories - ...
1
vote
1answer
21 views

How do I store and retrieve elements for ElementSelectField? Getting error “Call to a member function getUiLabel() on array”

I have a field that allows a user to select multiple products and save them to the database for a plugin, but when I try to retrieve these values and have them selected in my form I get the error ...
1
vote
1answer
30 views

Conditional fields based on structure level

I have a site that will heavily rely on the structure entry type to allow the client to publish content. The "1st" level of the structure will always act as a table of contents for its children. The ...
1
vote
1answer
91 views

Radio button field no setting default checked

I have two radio buttons on a field. I check one of the options as default so it's checked automatically, but when I visit the entry it's on, both of them are unchecked. I've tried deleting and ...
1
vote
1answer
17 views

Setting a field search variable after main entries variable changes values

Kind of hard to explain but here's an example: {{entries.all()|length}} {# outputs 88 #} {% set hasTopic = entries.search('dataTable_topic:*').all() %} {{entries|length}} {# outputs 7 #} How can I ...
1
vote
2answers
52 views

Add user to entry user field [RSVP to Event]

I'm trying to add an RSVP button for users to register their attendance at my events. Once they click the button, I would like them to be added to a field called eventAttendees on the event entry. My ...
1
vote
1answer
31 views

What will happen if we change the field type in the fields (settings -> fields) in Craft 3?

I am a beginner in Craft CMS. I just want to know, what will happen if we change the field type in the fields (settings -> fields) in Craft 3?
1
vote
1answer
22 views

Number field when empty and value=0

Is there a way to differentiate the number field value empty and 0? I would like to display this field only when there's a value in the field even though the value is 0. But when I input 0 into ...
1
vote
0answers
26 views

Craft Table/Tabular static entry input field

Is there a way to set up a Craft CMS entry field to have a table with predefined rows and columns? I have tried with the native Craft Table field, but it allows users to add rows or edit default ...
1
vote
2answers
58 views

Is there a way to make conditional input fields in Craft CMS?

I'd like to use conditional fields in my CMS instance. I found an old plugin called Reasons. I'm not sure it's compatible with Craft 3, so I'm looking for a workaround.
1
vote
1answer
69 views

Add rows to editableTableField via custom javascript

I am making a custom field via a module. I have an editableTableField that will hold the actual field values saved to an entry and I have other HTML elements that are used to grab data from a ...
1
vote
1answer
209 views

Internal Server Error when adding new Fields

I was adding new fields to my Craft 3 install using the field manager plugin. Suddenly I am seeing a Internal Server Error when trying to access the admin area. The front end looks fine. Anyone know ...
1
vote
3answers
524 views

Can't get checkboxfield values to show

I'm trying to build a filter and for that I want my client to be able to select a few options, which I use as classes for in my filter. I chose for a checkbox field and set it up in the backend. Now ...
1
vote
1answer
28 views

Field removed from entry layout is still displaying

So I'm setting my meta author tag this way: <meta name="author" content="{% if seoAuthor is defined %}{{seoAuthor}}{% else %}{{globalSeo.seoAuthor}}{% endif %}"> seoAuthor is a field that ...
0
votes
0answers
14 views

Craft Guest Form Category, Date Not Saving

The examples are not working for me. The category value via the Guest Form plugin is not saving: <select name="fields[adCategory][]" id="adCategory"> <option value="">-- Category --&...
1
vote
2answers
29 views

Specific entry type in entry field

This seems like an easy question to answer but I can't seem to figure it out... I'm sure we could do it in Craft 2. Anyway, I'm trying to figure out how to only display a certain entry type in an ...
0
votes
1answer
31 views

Form fields not visible after creating content fields using A&M Forms plugin

I'm new to Craft 2, and I created about 20 new form fields in the Settings>Content>Fields section. I created a new group for them to go in. Then, I went to create a new Form, but I cannot see those ...
3
votes
1answer
163 views

How to print all possible options of a dropdown field inside of a Matrix field?

I'm asking this outside an entry context. My starting point is {% set field = craft.app.fields.getFieldByHandle('matrixFieldHandle') %} When I print the data of the field, I find nothing ...
0
votes
0answers
43 views

Set field value of table field within matrix in a module?

I have a matrix called 'Election' with the structure: Block: role - Text field: roleName - Table field: candidates -- Text field: fullName -- Number field: votes My module can edit the roleName ...
0
votes
0answers
22 views

Include Field in URL

Looking for a way to include a field value in a section URL. Is this possible? It appears to work but always shows 'default' rather than the field value.
1
vote
1answer
47 views

List elements grouped by multiple dates

The company whose website I'm building host events, and for each of these events, it is only possible to purchase tickets on certain days, but for each event, there can be more than 1 such day. They ...
1
vote
1answer
21 views

Clicking New field on /admin/settings/field/new hangs site

Running 3.2.4, and clicking on "new field" which calls /[admin]/settings/fields/new times out on our AWS servers where the DB is hosted in the cloud. It isn't an issue when everything's running ...
1
vote
1answer
42 views

Using basic markup in field names

I'm creating field names for electrical components and I'd like to use subscripts like this: V<sub>min</sub> V<sub>max</sub> V<sub>adj</sub> Vmin Vmax Vadj Note ...
3
votes
2answers
1k views

Clarification on UID creation

I have a series of matrix blocks that use a ton of the same fields and was hoping I could simply duplicate them in the database and update the context and id of the fields. It'd be a LOT faster this ...
1
vote
1answer
39 views

Find Entries based on Field Values

I have a set of events I want to query based on user-input date times. How do I achieve something like this? {% set entries = craft.entries.section('events').minScheduleDate('>=', 'now')....
1
vote
1answer
37 views

Is it possible to create this type of custom field?

We need a field that holds assigned postal codes. Each Location entry will have this field and I'd like to have the following: Buttons to assign postals by city, state, county (data grabbed from ...
0
votes
0answers
191 views

Can't save fields

I want to change some fields and when I click 'save' it goes to the list of fields and the changes aren't saved. I can't add fields either. I can add and edit entries for example.
1
vote
1answer
80 views

Get and display a product's variant fields in twig

I'm working on a product template that can display products of any type. Various product types have varying numbers of variant fields each with their own options as other products. (All of my variant ...
1
vote
1answer
25 views

Values from fields in templates

I have categories in my cms. How do I gets a list of these value into my templates? Thanks.
1
vote
1answer
146 views

How to edit a date field in a plugin

So I want to edit date type filed on entry save, but I don't know how to format it. It times out on string and don't seem to accept DateTime objects either. Event::on( Elements::class, ...
1
vote
0answers
66 views

Custom plugin: Creating new fields will delete the field group they're being created in

I have a simple plugin which reads in a CSV file, and based on the first row of data will create a new field group, and then create fields within that group. The first time I run it everything goes ...
1
vote
0answers
30 views

Asset field - saving assets with dynamic subfolder by categories not working consistently

I have two asset (image) fields in project entry type, both with the same setting and with different outputs… Anyone knows why? Thanks My fields are: intro image field gallery image field Both ...
3
votes
1answer
251 views

Element query: find entries where a field's value is greater than, or less than another field's value?

I would like to do something like this: craft.entries.section('mySection').field1('> field2').all() And it should return all the entries in mySection whose field1 value is greater than their ...
2
votes
1answer
216 views

How to exclude certain fields from .search()

I have an event section in my website with a couple of fields on the entries and one of them is a "related events" field where I can select a other event entries to be shown at the end of the page. I ...

1
2 3 4 5 6