Created
July 17, 2023 10:48
-
-
Save Seorusus/7bfa57ba9e53ec2cc20bc9103a0a2df4 to your computer and use it in GitHub Desktop.
Скрыть сабмит формы при определенном условии
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the exposed form elements | |
$form['actions']['submit']['#states'] = [ | |
'visible' => [ | |
':input[name="choose_selector_container[choose_selector]"]' => ['value' => 'coincidence'], | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment