InDesign dialog box

Hi.
I try to make a dialog in InDesign with dynamic update fields, for example:

InDesign dialog window
Page size (width x heigth) → fill manually
Divides (vertical x horizontal → fill manually
Dimensions of one part → fill automatic when filling Page size and Divides

I want to update it until OK button is pressed.

Any idea how to make it?

regards
Grzessnik