Questions tagged [entry-form]
The entry-form tag has no usage guidance.
34
questions
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][...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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) ...
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 ....
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 %}
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
"...
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 ...
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 = ...
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 - (/...
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 ...
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 ...
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 ...
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 ...
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 ...
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):
&...
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-...