Skip Navigation

[Resolved] Cannot update custom field content via the Edit Post Form

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by kelvinL-2 3 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2152273
Screenshot 2021-08-26 at 1.29.51 PM.png

Dear Sir/Madam,

I created an Edit Post Form with "Add new content" type, everything ok.

I can't update the custom select field to the database,
I clone this to a new post form and change the Form type to "Edit existing content",
I create a Content Template and insert the Edit Form into it
I add Edit post link in View so that all records in loop with be provided a button to edit the post
I edit the post and save, only the text field can be updated but not the select field

Below is the edit post link in View

[toolset-edit-post-link content_template_slug='content-template-for-edit-contestant' target='self']<span class="badge badge-success">更改</span>[/toolset-edit-post-link]

Below is the custom field in form in both Add new content and Edit existing content

[cred_field field='contestant-ename' force_type='field' class='form-control' output='bootstrap']
[cred_generic_field type='select' field='contestant-apply-level']
        {
        "required":0,
        "options": [ { "value": "level-0", "label": "新秀組" }, { "value": "level-1", "label": "第一級" } ]
        }
      [/cred_generic_field]

Below is the shortcode of a required field, if I edit the post without change it, keep prompting errors when saving. I edit the post and it supposes the content is kept, why it is required to do the update. There are two options, I have to change to another and then change it back to pass the saving.

  [cred_field field='contestant-mode' force_type='field' class='form-control' output='bootstrap']
#2152981

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kelvin,

Would you mind allowing me to have admin access to the site as well as a link to the page where I can see the form ?

I've enabled the private fields for your next response.

Thanks,
Shane

#2153227

Sorry the site is local developed.

#2153911

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kelvin,

Can you change required to 1 instead of 0 ?

Also if that doesn't work can you let me know if you submit the form without the required attribute if it works.

Thanks,
Shane

#2159679

My issue is resolved now. Thank you!