Answers.Body: <p>I found out this had to do with the conditional field settings (in the field layout settings). If fields for the backend has certain conditions this has also influence on the front-end. Fields that are hidden by a condition can't be updated via the front-end. Sow nothing wrong in my code mentioned. After remove the conditions the fields are saving the normal way.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-08T08:37:05.647Z
Answers.LastActivityDate: 2024-02-08T08:37:05.647Z
Answers.UserDisplayName: Maarten Heideman
Answers.Body: <p>From my experience I think you can work on all kinds of elements, you just have to know how to use them, I have done a webpage that contain most of them look it at this url : <a href="https://beta.sfd-yemen.org/project-fund" rel="nofollow noreferrer">https://beta.sfd-yemen.org/project-fund</a>
  for the url, you do not need to add the hidden field,
  this work just fine:</p>
  <pre><code>&lt;div class=&quot;col-sm-6&quot;&gt;
                                  &lt;div class=&quot;mb-3&quot;&gt;
                                      &lt;label for=&quot;projectName&quot; class=&quot;form-label&quot;&gt;Website:&lt;br/&gt;
                                      &lt;/label&gt;
                                      &lt;input type=&quot;text&quot; name=&quot;fields[urlField][value]&quot; value=&quot;{{ entry.urlField }}&quot; class=&quot;form-control required&quot;
                                             id=&quot;projectName&quot; placeholder=&quot;Enter Website&quot;&gt;
                                      {{ _self.errorList(entry.getErrors('urlField')) }}
                                  &lt;/div&gt;
                              &lt;/div&gt;
  </code></pre>
  <p>*info : I am using (Guest Entries <a href="https://github.com/craftcms/guest-entries" rel="nofollow noreferrer">https://github.com/craftcms/guest-entries</a>) plugin to save the entry.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-06T08:09:15.413Z
Answers.LastActivityDate: 2024-02-06T08:09:15.413Z
Answers.UserDisplayName: Salah Ahmed Ali
Body: <p>I'm working on a front-end entryform and wondering which field types are supported with the default controller ({{ actionInput('entries/save-entry') }}). Title and plain text fields are working but looks like URL fields for example doesn't.</p>
  <p>In the backend I'll see there is an hidden field with type for the URL but adding that also not updating the field value. I tried this:</p>
  <pre><code> &lt;label for=&quot;website&quot;&gt;Website&lt;/label&gt;
                      &lt;input type=&quot;hidden&quot; name=&quot;fields[website][type]&quot; value=&quot;url&quot;&gt;
                      {{ input('text', 'fields[website][value]', entry.website ?? null, {
                          id: 'website',
                      }) }}
                      {{ _self.errorList(entry.getErrors('website')) }}
  </code></pre>
  <p>Only use <code>fields[website]</code> with or without <code>fields[website][type]</code> also doen't work.</p>
  
Tags: <craft4><frontend><frontend-form>
Title: Which field types are supported with a submit entry on Craft 4
ThreadText: # Which field types are supported with a submit entry on Craft 4
  
  (Asked by: username_0 on 2024-02-05)
  
  I'm working on a front-end entryform and wondering which field types are supported with the default controller ({{ actionInput('entries/save-entry') }}). Title and plain text fields are working but looks like URL fields for example doesn't.
  
  In the backend I'll see there is an hidden field with type for the URL but adding that also not updating the field value. I tried this:
  
  ```
   <label for="website">Website</label>
                      <input type="hidden" name="fields[website][type]" value="url">
                      {{ input('text', 'fields[website][value]', entry.website ?? null, {
                          id: 'website',
                      }) }}
                      {{ _self.errorList(entry.getErrors('website')) }}
  
  ```
  
  Only use `fields[website]` with or without `fields[website][type]` also doen't work.
  
  **Tags:** craft4, frontend, frontend-form
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2024-02-08. Score: 1 | Accepted answer
  
  I found out this had to do with the conditional field settings (in the field layout settings). If fields for the backend has certain conditions this has also influence on the front-end. Fields that are hidden by a condition can't be updated via the front-end. Sow nothing wrong in my code mentioned. After remove the conditions the fields are saving the normal way.
  
  
  ---
  
  ### Answer by username_1 on 2024-02-06. Score: 1
  
  From my experience I think you can work on all kinds of elements, you just have to know how to use them, I have done a webpage that contain most of them look it at this url : <https://beta.sfd-yemen.org/project-fund>
  for the url, you do not need to add the hidden field,
  this work just fine:
  
  ```
  <div class="col-sm-6">
                                  <div class="mb-3">
                                      <label for="projectName" class="form-label">Website:<br/>
                                      </label>
                                      <input type="text" name="fields[urlField][value]" value="{{ entry.urlField }}" class="form-control required"
                                             id="projectName" placeholder="Enter Website">
                                      {{ _self.errorList(entry.getErrors('urlField')) }}
                                  </div>
                              </div>
  
  ```
  
  \*info : I am using (Guest Entries <https://github.com/craftcms/guest-entries>) plugin to save the entry.
  
  
  ---
  
  