Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Protect form from editing but still export data to spreadsheet

Avatar

Level 9

Is there a way I can protect my forms so others can not edit them but they are able to export the data to a spreadsheet?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You can use Paul's LockAllFields function, which will prevent a user editing a field, but still allow data export from the form. It is basically setting the access property of all fields to readOnly.

See Paul's example here: http://forums.adobe.com/message/3168183#3168183. I have a slightly amended version here: http://assure.ly/yDtfsM.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

You can use Paul's LockAllFields function, which will prevent a user editing a field, but still allow data export from the form. It is basically setting the access property of all fields to readOnly.

See Paul's example here: http://forums.adobe.com/message/3168183#3168183. I have a slightly amended version here: http://assure.ly/yDtfsM.

Hope that helps,

Niall