Questions tagged [entry-form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
27 views

Entry form replacing rather than appending data to a matrix field

I have this in my entry form: {{ csrfInput() }} {{ actionInput('entries/save-entry') }} {{ hiddenInput('entryId', entry.id) }} {{ hiddenInput('fields[questions][...
Tyssen's user avatar
  • 643
1 vote
1 answer
153 views

Front end entry form not saving on Craft CMS 4 multisite

I have created a basic entry form that simply saves a title but I can't seem to get it working. I copied the code from Craft's documentation but that didn't work so I tried copying the code from ...
George Bleasdale's user avatar
1 vote
1 answer
169 views

'Request missing required body param' when submitting front end entry form - Craft CMS

I'm pretty new to craft and creating my first front end entry form using the demo code provided by craft. For some reason I'm getting a 'Request missing required body param' error. I've tried adding ...
George Bleasdale's user avatar
1 vote
1 answer
108 views

Saving data in a table field in a matrix field via entry form

I have an entry form with both table fields and matrix fields containing table fields. I can save data into the table fields OK with fields[fieldHandle][X][colX] but with the below, I get a matrix ...
Tyssen's user avatar
  • 643
2 votes
1 answer
131 views

How to validate custom field duplication on Front end form

I am working on the Entry Form for a shop entry (Channel section type). For the shop entry, there is one custom field named "businessNumber" that must be unique. All shop entries in a single ...
Apple's user avatar
  • 23
1 vote
2 answers
349 views

Craft CMS Entry Form Update Existing Entries without Creating New Ones

I'm building a Craft CMS entry form like the one at: https://craftcms.com/knowledge-base/entry-form . It needs to update existing entries within the section when their titles match, but should never ...
Clay Kilby's user avatar
1 vote
0 answers
180 views

How to save custom field for asset field in entry form

I have an entry form that includes an asset field called photoHalfBlock. The asset field has its own custom field called photoType. Can I set a custom field on the asset as part of my entry form? ...
Michael Todd's user avatar
0 votes
1 answer
134 views

How to bind JavaScript events to entry form fields in the control panel

When adding an entry, there is a field called resource id, I want to build a front end event on this field, after the value input or changed, trigger ajax to call an external api to check whether the ...
Thomas's user avatar
  • 69
1 vote
2 answers
180 views

New Matrix blocks aren't saving via front-end entry form

I have an entry type with simple Matrix field which has just one block type [activity] and several other non-matrix fields. My front-end entry form works perfectly on non-matrix fields, but for some ...
Roger Glenn's user avatar
2 votes
1 answer
189 views

Front-end entry form not updating custom fields in existing entry

I have an entry form (in a local v3.5.13.1 dev context) configured to update existing entries in a particular section. On load, it’s reflecting existing data (input via the Craft control panel) ...
Jonathan Schofield's user avatar
1 vote
1 answer
69 views

Send currentUser id along with uploaded asset

I've created an entry form with an assets field. All works great, uploading to portfolio/{currentUser.id} directories. On edit forms I only want to list assets uploaded by the currentUser so the ....
Ian Ebden's user avatar
  • 894
1 vote
1 answer
396 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 %} ...
Maarten Heideman's user avatar
0 votes
0 answers
105 views

Using Solspace Freeform to create an entry including a file upload

I have recently been having some issues using the Solspace plugin FreeForm. I have created a front end entry form which, when submitted, creates an entry in a specified section in the CP. I have used ...
Adam's user avatar
  • 255
0 votes
1 answer
170 views

Removing a matrix row via front end entry form

Read some similar posts on here but they don't quite solve my problem. I've gt an entry form with a matrix field in it, and I’m trying to make it editable via front end entry form. Specifically I'd ...
Ian Ebden's user avatar
  • 894
1 vote
0 answers
319 views

Entries as JSON files?

I work with VUE CLI and I want to build a entry form. My first Idea to bind in the data was props. They work but i can't modify the data (because it's props :D). To correctly integrate the data, my ...
Markus's user avatar
  • 11
3 votes
1 answer
139 views

How to save entry to the current site from the front end?

I have a multi site setup and a front facing entry form, which saves entries always to the same site (and not the current one which is weird). Is there a way to define to which site the current ...
Lukigi's user avatar
  • 565
1 vote
1 answer
67 views

Advice on entry form file uploads and S3

Just planning out an entry form that includes a file upload field – an assets field hooked up to an S3 bucket. I see some documentation on entry form assets here, but need some advice on getting this ...
Ian Ebden's user avatar
  • 894
1 vote
3 answers
834 views

Matrix fields in an entry form

I'm attempting to get matrix fields to populate in an entry form (using the guest post plugin) and so far just can't seem to crack it. I've tried various examples, but all assume that you're just ...
Christopher Dowson's user avatar
1 vote
2 answers
109 views

Does Craft have an equivalent of EE's Custom Fields loop for front-end entry forms?

We're in the process of scoping out an online assessment form to be build in Craft CMS. We need to give the client the ability to add, edit and remove questions (custom fields) and would ideally like ...
GazCrane's user avatar
2 votes
1 answer
923 views

Write to Craft via Element API

I’d like to use Craft as a headless CMS for my mobile app (via the Element API plugin). However, in addition to reading data, I’d also like to write data back to Craft. It looks like this is ...
JWK's user avatar
  • 123
1 vote
1 answer
65 views

Entry Form: Populate checkbox list from another entry and save options in entry

I am trying to load some options in to a checkbox list from another entry so that a user and save select them form a checkbox list but I am unable to save the Entry Form with their selection. I have ...
Mark's user avatar
  • 717
0 votes
0 answers
44 views

Switch entry type depending on entry field

Is there a way to switch entry type dynamically depending on the selection of a field value on a entry page? For instance, could I have a structure for motorized transportation and then have a ...
Eric Snyder's user avatar
1 vote
2 answers
748 views

Help with tags input field on a front-end entry form

I need to make a "keywords" field on a front-end entry form that can create tags in the cms (Craft 2). I am fully aware of existing tickets regarding this issue like Brandon Kelly's but they're a ...
Ryan's user avatar
  • 1,942
3 votes
1 answer
2k views

Craft 3: Front End Entry Form

I am following the documentation for Craft 2 here to create an entry form on the front end of my website. The form appears correctly on the front end but when I submit it, I get the following error: "...
Brianne Hostutler's user avatar
0 votes
0 answers
96 views

Editing expired entries from the front end

I'm trying to edit an expired entry from the front end. However, when I hit save, none of the changes persist and a redirect doesn't take place. Entries that have a live status are fine. Even when I ...
Steven Grant's user avatar
  • 1,855
1 vote
1 answer
808 views

Matrix Entry form

I'm trying to post a public entry form in a matrix field. I've added a count so that the block id is unique. However it's just clearing the matrix field and saving a single entry. {% set matrix = ...
Graham Winston's user avatar
4 votes
1 answer
671 views

Entry Form - Multiple Entries & Entry Type & Parent

I'm building an MVP for a project, I'm using Craft and would like to: Create an experiment (/experiments/) Create multiple cages for the animals within the previous created experiment eg. 5 cages - (/...
Graham Winston's user avatar
1 vote
2 answers
172 views

How to update front end Craft new row - stuck on JavaScript

I'm building out a front end entry form with a Natrix and everything is coming along fine. However when users create a new row each new row needs to be unique in order to be saved. This is where I'm ...
CreateSean's user avatar
  • 1,963
1 vote
1 answer
151 views

How to submit custom fields that are added in the right pane to your plugin?

I'm making my first Craft plugin. I have added custom fields to the right of an entry form with the cp.entries.edit.right-pane hook ("Share on.."). But I can't seem to find how to 'transfer' these ...
Thaoms's user avatar
  • 93
2 votes
1 answer
311 views

how to specify entry type on front end entry form?

I have a section with 2 entry types. Logged in users need to be able to submit to each type. I had planned on having 2 different entry forms. How do I tell the form which entry type to save to? I ...
Amanda Lutz's user avatar
5 votes
1 answer
474 views

How do I allow a user to remove an uploaded asset from a front-end entry form?

I see for users, I can add a hidden field <input type="hidden" name="deleteUserPhoto" value="1" /> to remove the uploaded photo, however I need to allow this functionality for an assets field in ...
Jeremy Gimbel's user avatar
3 votes
1 answer
401 views

Can I make the front-end entry form send an email to a user group?

I've used the front-end entry form in the docs to build a Q&A portal, and it's working great. But I'd like to extend the functionality once the new entry is saved. I've set the entries up to not ...
Jeremy Fuksa's user avatar
1 vote
1 answer
769 views

frontend form action: save as draft or publish

in my frontend entry form I have a "save as draft" submit button. The current action for this form is the following, which saves the entry submitted through the form as a draft (status: disabled): &...
user5991's user avatar
1 vote
1 answer
298 views

Entry Form doesn't save the entry and goes to 404 page

I have a frontend Entry Form that will not save an entry and goes to a 404 page. Basically i have this: <form method="post" accept-charset="UTF-8" enctype="multipart/form-data" class="add-a-...
John's user avatar
  • 974