May be I copy my script below
form1.body1[0].Originator.Pageselect.#field[0]::mouseUp - (FormCalc, client)
if ($.rawValue == 1) then
form1.body1[0].presence = "visible"
form1.body1[1].presence = "hidden"
form1.body1[2].presence = "hidden"
form1.body1[3].presence = "hidden"
form1.body1[4].presence = "hidden"
form1.body1[5].presence = "hidden"
else
form1.body1[0].presence = "visible"
endif
form1.body1[0].Originator.Pageselect.#field[1]::mouseUp - (FormCalc, client)
if ($.rawValue == 2) then
form1.body1[0].presence = "visible"
form1.body1[1].presence = "visible"
form1.body1[2].presence = "hidden"
form1.body1[3].presence = "hidden"
form1.body1[4].presence = "hidden"
form1.body1[5].presence = "hidden"
else
form1.body1[0].presence = "visible"
form1.body1[1].presence = "visible"
endif
There are same scentense continue, but neglected.
my problem is; once the form returned by user. the initial view will be turning to all "hidden" except for the 1st subform. even the user saved with any value.