Questions tagged [entry-form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
40 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 ...
user avatar
  • 23
1 vote
2 answers
46 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 ...
user avatar
1 vote
0 answers
38 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? ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 27
1 vote
2 answers
55 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 ...
user avatar
2 votes
1 answer
101 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) ...
user avatar
1 vote
1 answer
56 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 ....
user avatar
  • 854
1 vote
1 answer
134 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 %} ...
user avatar
0 votes
0 answers
59 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 ...
user avatar
  • 245
0 votes
1 answer
124 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 ...
user avatar
  • 854
1 vote
0 answers
246 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 ...
user avatar
  • 11
3 votes
1 answer
78 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 ...
user avatar
  • 545
1 vote
1 answer
55 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 ...
user avatar
  • 854
1 vote
3 answers
687 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 ...
user avatar
1 vote
2 answers
104 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 ...
user avatar
2 votes
1 answer
852 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 ...
user avatar
  • 123
1 vote
1 answer
61 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 ...
user avatar
  • 671
0 votes
0 answers
41 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 ...
user avatar
1 vote
2 answers
672 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 ...
user avatar
  • 1,887
2 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: "...
user avatar
0 votes
0 answers
81 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 ...
user avatar
  • 1,713
1 vote
1 answer
716 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 = ...
user avatar
4 votes
1 answer
552 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 - (/...
user avatar
1 vote
2 answers
164 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 ...
user avatar
  • 1,897
1 vote
1 answer
134 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 ...
user avatar
  • 83
2 votes
1 answer
276 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 ...
user avatar
5 votes
1 answer
417 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 ...
user avatar
3 votes
1 answer
379 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 ...
user avatar
1 vote
1 answer
682 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): &...
user avatar
1 vote
1 answer
268 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-...
user avatar
  • 912