Home › Forums › Quform WordPress › How to adding the created post to defferent category with checkboxes options
- This topic has 13 replies, 2 voices, and was last updated 11 years, 2 months ago by
Nel.
- AuthorPosts
- June 16, 2014 at 11:09 am #11384
Nel
ParticipantHi there,
I am planning to use Quform and let people who can create a post on my website.
The post content is about the people who lost his pets or who wants to share where is a pet needs adoption.I have read the “creating a post” in guides document and it was very useful to me to create a post by Quform.
But now, I need checkboxes options and let people who can choose which kind of information into the right category when they fill the form.The categories like lost-dog, lost-cat, dog-adoption, cat-adoption, charitable-activities and health-information.
June 17, 2014 at 10:29 am #11402Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 17, 2014 at 11:47 am #11414Nel
ParticipantHi,
It’s work, but I have set the other options with conditional logic above the checkboxes option, they will not show in front-end when customize values is enable.
June 17, 2014 at 11:51 am #11415Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 17, 2014 at 2:16 pm #11417Nel
ParticipantEvery thing is what I expect right now, It’s really a big step for me.
Can I add multi element unique ID at the same code to post in sub category?
wp_set_object_terms($postId, $form->getValue('iphorm_1_18', 'iphorm_1_26'), 'category');
e.g.
✓ cat-1, cat-2, cat-3, cat-4
sub-cat-1, ✓ sub-cat-2, sub-cat-3
June 17, 2014 at 2:41 pm #11423Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 17, 2014 at 2:53 pm #11425Nel
ParticipantSorry, no luck… the new post was into uncategorized.
June 17, 2014 at 3:04 pm #11427Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 17, 2014 at 3:12 pm #11430Nel
ParticipantYes ! It’s work. Really thank you for help. All dogs & cats will loves you!
June 19, 2014 at 6:02 pm #11476Nel
ParticipantHi,
I set a main checkboxes that contain 3 options, and each options has it own sub checkboxes. When I select any sub options than go back to select another sub options under the others main checkboxes. It’s will create a post in 3 kinds of categories that I clicked. How can I filter the sub options that I clicked and don’t make the post in that category?
e.g.
<a-option> ✓ <b-option> <c-option>
✖ <1-sub-1a> , <2-sub-1> ✓ <1-sub-b> , <2-sub-b> <1-sub-c> , <2-sub-c>✖= clicked, ✓=final select, each sub checkboxes will hide when click to other main option.
June 22, 2014 at 8:39 pm #11517Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 11 years, 2 months ago by
Ally.
June 22, 2014 at 9:00 pm #11521Nel
ParticipantYes, I used the conditional logic to hide the sub checkbox when main checkobox was changed, and the notice email was show single sub checkbox that user submitted.
Maybe it’s just me set the wrong PHP code.
$cats = array_merge((array) $form->getValue('iphorm_1_18'), (array) $form->getValue('iphorm_1_26'), (array) $form->getValue('iphorm_1_47'));
iphorm_1_18 is main checkbox, iphorm_1_26 & iphorm_1_47 are the sub checkbox.
June 22, 2014 at 9:24 pm #11526Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 22, 2014 at 10:17 pm #11539Nel
ParticipantEverything is working well, Thank you.
- This reply was modified 11 years, 2 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.