This example shows the custom implemented company login form template (PHTML file) with the “show or hide” password checkbox. This option produces a dark gray rendering of the hidden entities in both the Display window. It is defined in app/code/Magento/Customer/view/frontend/web/js/show-password.js. Change entity visibility with the show and hide commands. The RequireJS file path for the “show or hide” password checkbox is Magento_Customer/js/show-password. The id of the password input field, such as #pass. JQuery show hide div based on selected dropdown option. (see screenshot below) 10 The selected updates are now hidden. (see screenshot below) 9 Check the box of any available updates that you want to hide, and click/tap on Next. (see screenshot below) 8 When it's finished detecting problems, click/tap on the Hide updates option.
var optionSetValues optionSet.getAttribute ().getOptions () 3.clear option set object. If you want to show or hide additional form fields in the form by selecting from dropdown list. 7 Check the Apply repairs automatically box, and click/tap on Next. var optionSet .controls.get ('your option set control name') 2.get option set list. If the 'columnselect' select menu option is set to '1 column' then the 'layoutselect' select menu must display only the 'none' option. In this particular case, the user needs to select that paragraph return at the end of the document and change its font size to 1pt. Then just click it on the Standard toolbar to turn it on.
The code below shows what I am trying to achieve. To turn on the show/hide button, first use the Recommended Settings to be sure you can see the button. Here the component path value is Magento_Customer/js/show-password I think you can use JavaScript to change the option set value. I need to show/hide options on one select drop down dependant on another select drop down options. "component": "Magento_Customer/js/show-password", Pass both the component javascript file path, and the password field id prefixed with #. It uses the scope binding name showPassword to initialize the component. Initialize the “show or hide” password checkbox using the text/x-magento-init script. It uses the scope custom knockout binding.įor more information about Scope binding, refer to Scope Binding Step 2: Add the x-magento-init script
Select an option: