We seem to have all kinds of sc_field_… functions and with { … } we can mention fields.
I would like to be able to loop through all my fields on the screen and I dont really see a way to do that.
I know I have sc_getfield but that is insufficient. Say I have 13 similar fields in my database:
JOBDT1, JOBDT2, …
I would like to be able to make a loop like:
for ($i=1;i<=13;i++){
$field=getactualfield(‘JOBDT’.(string)$i);
$field.value=$i * 365;
}
Kind of like a real programming language (hint delphi) where you can loop through all the fields, buttons and what else.
This would make things a lot easier for pages with many fields. And one could make a loop for example that disables/hides all fields that are not filled or whatever.