I have another mystery on my hands. I have a button that makes a hidden subform visible. Once clicked for viable the user can fill it out the boxes in the subform. Then when done the form is saved and when re-opened by the user to make correction or to print, this subform reverts to hidden, but the data is still there. Is there any way to keep this subform visible after filling out, saving and opening?
Any help or script ideas would be appreciated
Solved! Go to Solution.
Views
Replies
Total Likes
There are a couple of options but the simplest is probably to test the presence of data when the form opens. So, for example, if one of the fields in the subform is called hatsize, in the docReady event in a parent subform do something like
var fld1 = hatsize; (or a path to it)
if (fld1.rawValue != "" && fld1.rawValue != null) {
myForm.presence = "visible";
}
Views
Replies
Total Likes
There are a couple of options but the simplest is probably to test the presence of data when the form opens. So, for example, if one of the fields in the subform is called hatsize, in the docReady event in a parent subform do something like
var fld1 = hatsize; (or a path to it)
if (fld1.rawValue != "" && fld1.rawValue != null) {
myForm.presence = "visible";
}
Views
Replies
Total Likes
I will try it and get back to this form. Thanks for the reply
Views
Replies
Total Likes
Also, in File>Form Properties>Defaults make sure that the option to "preserve scripting changes to form when saved" is set to Automatically.
fbook, thanks for your post, worked perfectly! I going to nominate you for a distinguished service award!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies