Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[E] Improvement to checkboxes #2357

Closed
lianglee opened this issue Mar 2, 2024 · 0 comments
Closed

[E] Improvement to checkboxes #2357

lianglee opened this issue Mar 2, 2024 · 0 comments

Comments

@lianglee
Copy link
Member

lianglee commented Mar 2, 2024

Thanks to Michael 馃憤馃徎 :)

echo ossn_plugin_view('input/checkbox', array(
			'name' => 'interests',
			'value' => 'games, movies', // or
		//	'value' => array('games', 'movies'),
			'options' => array(
					'movies' => 'Watching movies',
					'games' => 'Playing Games',
					'fun' => 'Fun',
			),
));

You need to take care of the input during action as it will be array for multiple option values and single value for single option checkbox.

lianglee added a commit that referenced this issue Mar 3, 2024
lianglee added a commit that referenced this issue Mar 6, 2024
[E] Mark radio boxes required if not checked #2359
@lianglee lianglee closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant