Skip Navigation

[Resolved] Problem when adding option to custom fields group

This support ticket is created 3 years, 2 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by matsd 3 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2514773
toolset_fields.png

Problem when adding option to custom fields group

I have a custom fields group called "Bekvamligheter" (Facilities) and field type is "Checkboxes".

Here is an example and you can also see attachment.
Title: Internet
Value to store: 1
Selected: Internet

My website is multilingual (2 languages) and I'm using WPML.

Now when I added two more Facilities, I will get "1" when that checkbox is marked.
Facilities I added earlier still work and show text.
I understand that "1" is the "Value to store" value and if I change "1" to "Something" then it will show instead of "1".
Since I have multi lang website I need to translate and I have tried to translate "Value to store" value in "String translation" but default language only shows.

You will see some checkbox values here, hidden link
AC, Stove, Microwave, Fridge, Freezer, Kettle, Toaster, 1, Vattendispenser
Last 2 items (1, Vattendispenser) are my new options and I tried to translate "Vattendispenser" withou success.

#2515079

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Could you please try to add the following WPML config code at:
=> WPML => Settings => Custom XML Configuration and add the following code and save it:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>types</tag>
      <attributes>
        <attribute>bekvamligheter-list</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

Do you see it working as expected?

#2515203

I have added the code.
What's next?

Tried to uncheck -> SAVE - check -> SAVE but still same checkbox value.
I have also tried to add a new facility but I

#2515217

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share admin access details and let me check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2515323

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please check the following screenshot: hidden link

For the checkboxes option that was displaying 1 - on the custom field page:
=> hidden link
- You have selected the option "Display the value of this field from the database", now I've changed the option to "Show one of these two values" and I can see its displaying the correct value on frontend.

Can you please confirm it works as expected now: hidden link

#2515383

ok, but earlier created checkboxes works with this setting. Anyhow, "Vattendispenser" will not be translated when I change lang.

#2515481

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

With option "Vattendispenser" - it is same issue.
- You have selected the option "Display the value of this field from the database", now I've changed the option to "Show one of these two values" and I can see its displaying the correct value on frontend.

Can you please confirm it works as expected now: hidden link

#2516143

Problem solved!
But still strange that earlier checkboxes works when they store value "1" in db.