Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Cell Hell... help!

Avatar

Level 3

All,

heres what I need help with:

I have 15 cells and a text input field.

Each time the text field is changed it will place that input into the first cell. when it is changed again it will place that into the sencond cell and so on.

Any Ideas????

2 Replies

Avatar

Level 7

Put this (or similar script) on the exit event of the text entry field. This example is done in formCalc.

    for i=0 upto 14 step 1 do
        if(hasValue(TextField[i]))then
            continue
        else
            TextField[i]=$
            $=""
            break
        endif
    endfor

All of your textfields have to have the same name.

All of your textfields have to be siblings

Good luck!

Stephen

Avatar

Level 3

Hi KingPhysh.

So, which parts do I change in that script to represent my text boxes. (sorry, never been any good with formcalc)