pralash
17th December 2018, 16:29
Hi,

I can invisible a particular form field after loading the form by using inputfield.invisible function... But I can't once again visible the form filed while I perform the when.field.changes... My script is as follows...

|********************************form section***********************
form.1:
init.form:
after.form.read:
inputfield.invisible("fromlab","tolab")

field.reprint:
when.field.changes:
refresh()
if reprint = tcyesno.yes then
inputfield.visible("fromlab","tolab")
else
inputfield.invisible("fromlab","tolab")
endif

Here "fromlab","tolab" and "reprint" are form fields...
Whenever load the form, I have invisible two controls "fromlab","tolab" ...
"reprint" is also a form filed(tcyesno domain)... When I made a when.field.changes event on reprint field, two controls "fromlab","tolab" are not visibled... Is there any problem in my script... Please assist me how to once again visible these two form fields...

Thanks in advance
Regards,
Pralash

Juergen
17th December 2018, 17:07
Hi Pralash,

please try together with function display

inputfield.visible("fromlab")
display("fromlab")

pralash
18th December 2018, 07:32
Hi Juergen,

I follow your code... but I can't get the result.... Thanks for your guidance... Is there any other option is available to get the solution please...?

Regards,
Pralash

JaapJD
2nd January 2019, 12:09
I think that the after.form.read event is too early. What is described in the programmers manual for before.program (in the inputfield.invisible section) seems to apply to after.form.read as well. If you move that to an init.form or init.group section, it will work.