Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Help with save as

Avatar

Level 2

I have a fillable form we use everyday when people go to save the form they do not clear out the file name that is already there (the master file name) and they just save it to the file name that is there already.  So the next time we go open the form to fill it out it already has things saved since they didnt save it as another file name. is there anyway when we go to save as the filename can be blank so they will not override the master form?

Thanks for the help

Nick

5 Replies

Avatar

Level 2

If you need i can upload the form

Avatar

Former Community Member

Try this and let me know if it works for you.

Off a button add this:

Event is Click and the Language is JavaScript

xfa.host.messageBox("Please save file in a new name. \n\n more text..........add what you want."

, "THANK YOU", 1,1);

app.execMenuItem ("SaveAs");

Avatar

Level 2

can i add it to the saveas button already ?

Avatar

Former Community Member

Yes, I didn't know if you had one already or not. I would just add the xfa.host.messageBox code to the Save As button. I would add it first so it prompts the user to save the file in another name, then brings up the Save As dialog box.

Eve Tracy

Avatar

Level 2

Thanks

We will see if that gets the problem solved