CalcBuilder Forum

Restrict exit layout rows

User dhoeke 2026-01-14 09:34:18

I have tables in the exit layout.

You see whole and halve points.

Is there an option (I was thinking about the Yes No function in the form) where the exit layout is showing either with or without these half points.

Thanks for any info.
Regards, Dennis

Moonsoft support 2026-01-14 09:38:54

Hi,
looking at your code, it seems you're creating the table rows based on a loop, here:

//$i from 0 to te behalen totaal, increasing by half:
for($i=0;$i<=$puntenvoor1;$i+=0.5){


So if you want to remove half points, the loop increase should be instead

for($i=0;$i<=$puntenvoor1;$i+=1){


Now, if you want to make this depend on any condition, you can set it as a variable

$increase=0.5 //default
if($myfield=="Y"){
//change the value according to your preferred condition
$increase=1;
}
//and use the variable for the loop
for($i=0;$i<=$puntenvoor1;$i+=$increase){


Hope this helps, regards
Silvia Martín
Moonsoft Team

User dhoeke 2026-01-14 10:57:14

Exactly what I was looking for! Thanks a lot. You all are a lot smarter than I am.

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!