Hi,
I have a button on a form that, when pressed, changes the value of a hidden field.
However, it is not necessary that the new value in that hidden field be saved. I would therefore like to make it so that if a user clicks the button and then closes the document, they are not prompted to save.
I don’t think I can use the SaveOptions field because if they made any other changes to the document in addition to clicking the button, they do need to be prompted.
I basically want any changes to that field ignored, but any other changes should be counted. Is there any way to do that?
Thanks!
Ben
Subject: Hide the save prompt for 1 specific field?
Ben,
What is the purpose of them putting a value in the hidden field? Perhaps if we knew more of what the button was achieiving someone could help?
Teri
Subject: RE: Hide the save prompt for 1 specific field?
Well, a quick explanation. It wasn’t really a hidden field. Here’s the complete info on what happens:
They type some text into a certain field on a document. When they click the button, it creates a new document with another form that includes on it the text that they typed into the field. It then clears the text in the field, so that they can type more info in.
Therefore, because the text field has been modified, they are presented with a “Would you like to save” dialog. However, it is always set back to “” after they click the button, so there is no need to save. But if they changed anything else on the doc, they should be prompted.
Thanks.
Subject: RE: Hide the save prompt for 1 specific field?
OK, so the field is just used to place some information on a new doc being created. A few thoughts, not a guru mind you…
Why not just place a dialog box at the beginning of the code to create a new doc that would ask the person the information, then fill in new doc with that? This way you are not placing the doc in edit mode, not touching a field (which of course if you type in the field it will ask you the do you want to save question).
Second, (haven’t tried it so don’t know if it would work), but place something in one of the close events that if that field has nothing, do not save, close window.
Last thought is that in your button code can you just add the save and close original doc???
HTH
Teri