Avatar

Level 8

Thank you.

My impression:

PreSave: Fires as soon as user clicks the SAVE button, but not YET the form saved on PC

PostSave: Fires, AFTER form is saved on PC

Not sure, did i understood correctly or not

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000753.html

I will explain my requirement:

My form uses by 2 kind of user groups, say, grp_1 and grp_2 (i knew/ my_form knows that which group is logged-in/accessing/opened the form, so that i can differentiate the below 2 scenarios easily, no worries here for this validation )

grp_1: With your first code snippet working well, i am all set here, Thank you

grp_2: User opens the form, starts entering data, user is half way, want to take coffee braek, hence want to SAVE at that point as is on PC, so user clicked SAVE button of the form (work-in-progress) and the form has saved on PC...........if user opens this saved form, it must be locked status/not editable status

Well,

User came back from coffee, want to continue filling the rest of the stuff/fields/pages of the form, so, let user go ahead filling the form......may be if user want to save any time (even completing all the fields/sections/pages) the form on PC, let SAVE, but again the the SAVEd form should ALWAYS in lock/non-editable state

Pls. help, where should i write the JS for this grp_2 case, JS Code snippet pls?

I guess, i need to write some piece in PreSave (as i am doing for grp_1) and fields "open" peice is in docClose or Validate event as below link tells, not sure

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000753.html

Than you