Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Membership › Store register form
- This topic has 1 reply, 2 voices, and was last updated 4 years, 10 months ago by Sarmistha Chakraborty.
Viewing 1 reply thread
- AuthorPosts
- February 10, 2020 at 7:51 pm #106518ozkancolParticipant
on store register form..Can i do Dropdown menu for examle Choose |A|B|C|D|E
When vendor choose A and then Textbox visible - February 12, 2020 at 3:41 pm #106819Sarmistha ChakrabortyMember
Hello,
jQuery(document).ready(function ($) { $("input[name='wcfmvm_custom_infos[test-custom]']").hide(); $("input[name='wcfmvm_custom_infos[test-custom]']").prev().prev().hide(); $("select[name='wcfmvm_custom_infos[test-custom-select]']").change(function(){ if($(this).val() == 'A') { $("input[name='wcfmvm_custom_infos[test-custom]']").show(); $("input[name='wcfmvm_custom_infos[test-custom]']").prev().prev().show(); } else { $("input[name='wcfmvm_custom_infos[test-custom]']").hide(); $("input[name='wcfmvm_custom_infos[test-custom]']").prev().prev().hide(); } }); });
Add this code to your child theme’s js file
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/ (https://wordpress.org/support/topic/call-code-snippet-from-javascript/)
Modify the “input[name=’wcfmvm_custom_infos[test-custom]’]” with your input text-field name attribute, and modify the “select[name=’wcfmvm_custom_infos[test-custom-select]’]” with your drop-down field name attribute. (PFA)Thanks.
Attachments:
You must be logged in to view attached files.
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.