Store register form

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #106518
      ozkancol
      Participant

      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

    • #106819

      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.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.