Skip Navigation

[Resolved] Advanced Custom Forms Select Displaying Wrong Values

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Beda 7 years, 5 months ago.

Assisted by: Beda.

Author
Posts
#532148
Screen Shot 2017-06-03 at 4.14.52 PM.png
Screen Shot 2017-06-03 at 4.15.14 PM.png
Screen Shot 2017-06-03 at 4.15.23 PM.png
Screen Shot 2017-06-03 at 4.15.40 PM.png
Screen Shot 2017-06-03 at 4.15.50 PM.png

I'm using Advanced Custom Fields on my site. Using Toolset, I've created a view with a custom search filter using the field I created in ACF.

The field is a checkbox with multiple options. The display of this field/filter on the view page is a select dropdown.

When viewing the front-end the select/dropdown field returns:

 a:1:{i:0;s:3:"one";}

However, the option should simply be: one

When I inspect the element I can clearly see that there's an issue with the double quotes being used but I'm unsure where I need to make this fix. Regardless, I'm not that confident in my own knowledge PHP.

<option value="a:1:{i:0;s:3:" one";}"="">a:1:{i:0;s:3:"one";}</option>

Any help would be greatly appreciated!!

Chris

#532371

Well, such complex fields are a little "nightmare" in compatibility.

Each plugin usually uses custom Structures to store the data.

As such we can display and use only simple 3rd party Fields in the Toolset.
We provide Types to give a full palette of Fields to overcome that.

You will in most cases not be able to control, display or manipulate 3rd Party Complex Fields like WYSIWYG or Checkboxes or similar, using Toolset native GUI methods.

This is not a problem of Toolset per se, it's a generic problem in those cases.

Now, I want to test that and see what we could do to solve it.

Could you elaborate what I need to do with ACF, so to produce the mentioned Field Structure?

Then I can deploy something similar locally and see if I receive the same output.
According to that, I might come up with a custom Solution, or could at least give more details so you could craft a Custom Solution.

Thank you for your cooperation!

#532374

Thanks for the interest in helping. To recreate the scenario you would have to:

- In Advanced Custom Fields create a new field group. Make sure the field group is assigned to a post type (such as posts or pages) so it will show up while editing a post/page.
- in that field group create a checkbox
- Add a couple values.
- Assign the field group to a post
- Create a view
- Add a search filter using the custom field you created in step one.
- Create a new page so you can display your new view.
- Make sure there are a couple test posts/pages utilizing the values you've entered into the custom field.

#532375

I wouldn't have a need to use Advanced Custom Fields if the method for adding new fields to the custom fields in Toolset was more flexible.

I have fields that have MANY options. Unfortunately, it appears I'd have to enter in each value one by one if using the toolset custom fields.

Perhaps I'm missing something and there's a better way?

#532378

moving attention to the following link in order to find a resolution: https://toolset.com/forums/topic/advanced-custom-forms-select-displaying-wrong-values-2/#post-532376

#540829

You seem to have clicked on "my issue is resolved" here, and I do not monitor solved tickets regularly.

Do you still need assistance here?

The forum ‘Types Community Support’ is closed to new topics and replies.