[FormIT] How can I set mathMinRange

Hello

I would like to have small number in the math operation
I saw in the doc minRange and maxRange but I do not understand where I have to place it. There is no example

I am using the following

[[!FormIt?
	&hooks=`math,spam,email`
	&emailTpl=`emailTpl`
	&emailTo=`info@espace-awen.ch`
	&emailSubject=`[Espace Awen] Un nouveau message`
	&successMessage=`Votre message nous a bien été envoyé.`
	&validationErrorMessage=`Une erreur s'est produite. Vérifiez votre saisie.`
	&successMessagePlaceholder=`successMessage`
	&clearFieldsOnSuccess=`1`
	&validate=`nospam:blank,
		name:required,
		email:email:required,
		message:stripTags,
		math:required
]]
		<input type="text" name="math" value="[[!+fi.math]]" />
		<input type="hidden" name="op1" value="[[!+fi.op1]]" />

		<input type="hidden" name="operator" value="[[!+fi.operator]]" />

		<input type="hidden" name="op2" value="[[!+fi.op2]]" />

[[!+fi.op1]] [[!+fi.operator:is=-:then=+:else=+]] [[!+fi.op2]]=

Some one could give me a tip?

Thanks

Just use them like any other property:

[[!FormIt?
    &mathMinRange=`1`
    &mathMaxRange=`3`
	...
]]

Many thanks haéftrainedharry

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.