Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidden fields help

Status
Not open for further replies.

jasonsas

Technical User
Oct 2, 2002
63
AU
Hi,

I am very new to Notes Development but hoping someone can give me some tips!!

I have a form in which I want to be able to hide some text and fields (or subform) until they click a button which will allow them to add an attachment. When they click this button, I want some hidden text (or subform) to become available. This hidden text (or subform) contains the field which I want the attachment to go into.

In the button we have created to enter the attachment, I have added a command to set a hidden field to Yes, which in turn would hopefully make the hidden text available for the user to add the attachment into.

The problem I'm having is when we click the button to add attachment, it's not doing it in 'real-time' - ie, it says can't locate field, because it hasn't unhidden it yet!

I hope I'm making sense and that someone can help!! Please let me know if I'm not clear!!

Thanks for any help!
 
Subforms are loaded at document open, so they cannot be "dynamically" loaded when the document is already open. You can change subform between two openings, but that's about as dynamic as it gets.

That said, it is not really an issue. You can have the attachment stuff in a subform - you'll just have to keep it hidden until the user clicks the button.

When the user clicks said button, you should set a field to notify the hidden field that it is time to show itself again. You also need to use the @Command([RefreshHideFormulas]) to ensure that the field appears when necessary.

I hope this helps.

Pascal.


I've got nothing to hide, and I'd very much like to keep that away from prying eyes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top