Skip Navigation

[Resolved] select to checkboxes

This support ticket is created 6 years, 10 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 22 replies, has 2 voices.

Last updated by Luo Yang 6 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#541650

Hi Luo,

Pls check my website with the credentials you have,

I am facing this below issue now.

My SELECT field District has 5 parts/fields , :
can I merge them into one ? using script perhaps ?
link for the post field: site.com/wp-admin/admin.php?page=wpcf-edit&group_id=15

Meaning when I select any one the rest should be disabled > this is for the backend.

At the search form: the output should be checkboxes instead of select, yes I am aware I could set this option but the result is not there,

Pls test select D02 and D15, the result is NONE but there should be output for this.
link: site.com/landed-house
WordPress archive : /wp-admin/admin.php?page=view-archives-editor&view_id=51

We discussed this before but we solve it with a custom hardcode html. but now we cant use that .

Thanks !

#541678

Hi is Mr Luo active today ?

#541690

Dear C6410,

Today we are overloaded, you will get the answer in few hours.

#541693

Noted Luo,

it's strange why it's not working out of the box and need custom adjustment, defeat the purpose of using this plugin.

#541708

Hi ,
can you try to explain to me some details at least so i can try my own first?

#541711

Could you describe the question with more details:
can I merge them into one ? using script perhaps ?
I can see you are using below codes:

Central Districts
...
[wpv-control-postmeta field="wpcf-central-region-districts" type="checkboxes" url_param="wpv-wpcf-central-region-districts"]
...
North Districts
...
[wpv-control-postmeta field="wpcf-east-region-districts" type="checkboxes" url_param="wpv-wpcf-east-region-districts"]

Are you going to merge field "wpcf-central-region-districts" and "wpv-wpcf-east-region-districts" into one custom field?

If it is, there isn't such a built-in feature within Views plugin, you will need do it manually within Types plugin:
Setup a custom field, with all options you needed.

#541714

Hi, i wont call it merge in fact,

There is 5 options for district, at the backend only 1 can be selected .

Next is the output itselves, its not displaying the result as logic,

Try select D02 and D15 you will get only D02 results.

Pls let me know if you need more informations.

#541794

It is you called it "merge" in the first post:
https://toolset.com/forums/topic/select-to-checkboxes/#post-541650

I tested your website:
hidden link

with below steps:
1) click " District Filter (Location) "
2) select only option "D02 Anson, Tanjong Pagar",
I get one result
3) select only option "D15 Katong, Joo Chiat, Amber Road",
I get empty result
4) select both options "D02" and "D15"
I get one result
Can you confirm above?
This is expected result, since there isn't any result for option "D15".
If it is not expected result, please point out which item should be displayed in the result?

#541836

Hi Luo,

as below.

D2 - 1 result
D16 -1 result

you can try D2 and D16 - should have 2 result, but now none.

#541851

I think i know the issue, when editing the custom field district, all the field value got messed. those added previously remain in list view but not attach at the backend.

i will try to check one by one and report if i need any more assistance.

#541852

OK, please update this thread when you need more assistance

#541859

OK. iv added all the value back , i only get result for one custom field.

test D02 - 1 result - ok
D16 - 2 result -ok.

when i click D2 and D16 i should get3 result but none for now. and there is strange search form output. not sure from there .

pls look into it, hope to move forward by tonight.

#541864

i think Luo , one of the way to approaches is to use OR function in the query filter. since can't use AND and OR same time, next approach is

1. use hard code HTML - since all district is fixed custom field data. OR
2. combine all into 1 field, " District " and separate manually by checkbox at the search form

whats your view ?

#541865

i've left the old hard coded HTML in the <!--commented block-->.

#541883

As you can see, there isn't such a built-in feature: use AND and OR same time. So you can try the one of options you mentioned above, in my opinion, I will try with a custom Hierarchical taxonomy, for example:
- Central Districts
-- D1
-- D2
...
- North Districts
-- D16
-- D17
...

See our document:
https://toolset.com/documentation/user-guides/create-custom-taxonomies/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.