Skip navigation
Currently Being Moderated

clear signature but do not unlock previously locked fields

Jul 6, 2011 8:31 AM

I have designed a form in LiveCycle ES 8.2.1 in which certain fields are locked when a check box is checked. They should remain locked. However, when a first digital signature is inserted and the user clears the signature. previously locked fields get unlocked. These fields must always stay locked.  Does anyone have a solution for this?



  • Currently Being Moderated
    Jul 11, 2011 11:36 AM   in reply to Swat_mpg

    Are you executing JavaScript to lock the fields when the check box is selected?  If so, can you re-run the script to have the fields lock again.  You could check the status of the signature field, if it is unsigned then you could fire the script to lock the fields associated with the check box.




    Mark as:
  • Currently Being Moderated
    Jul 13, 2011 7:48 AM   in reply to Swat_mpg



    I created a simple sample that, I think, achieves what you want to do.


    I created a form that will set the access on some fields to readOnly based on the value of a checkbox (selected = readOnly, un-selected = open)


    I then have a signatureField that "onChange" triggers the click event of a hidden button that contains code to set a flag in a field (not required in your case, but I built this sample off of one I created previously) and it sets the Check Box itself to "readOnly" so it cannot be accessed, preventing it's associated fields from being changed back to open, by de-selecting the check box.


    Please note that fields can be locked by a signature field by using a field collection (and no script), but the lock is disabled if the signature field is cleared.  For demo purposes, I created a field collection that contains the checkbox and I associated it with the signature field.


    Take a look at the attached sample.




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points