• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CGBetterforms validate checkboxes
PostPosted: Mon Jul 15, 2019 2:28 pm 
Offline
New Member
New Member

Joined: Mon May 05, 2014 6:45 pm
Posts: 3
Hoe zou ik met CGBetterforms kunnen controleren of minimaal 1 van een checkbox groep is aangevinkt?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBetterforms validate checkboxes
PostPosted: Thu Jul 18, 2019 10:09 am 
Offline
Forum Members
Forum Members

Joined: Tue Nov 30, 2010 12:16 pm
Posts: 66
Ik heb dit niet getest, maar volgens mij moet je het zoeken in de hoek van de validatie via smarty template.

Je kan dit binnen het formulier vinden onder het tabblad 'Validation' > add a validation > Validate via smarty template.

Uitgaande van dit html voorbeeld:
Code:
<input type="checkbox" name="auto[]" value="merk1" />
<input type="checkbox" name="auto[]" value="merk2" />
<input type="checkbox" name="auto[]" value="merk3" />


Dan zou dit je smarty template worden:
Code:
{if empty($auto)}
Kies voor het veld 'Auto' minimaal één merk
{/if}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting