cancel
Showing results for 
Search instead for 
Did you mean: 

offline form submit button event to make fields readonly

Former Member
0 Kudos

Hello Gurus,

i have a offline form with few input field and radio buttons and a SUBMIT button, once the user clicks on the submit buton the form is send as a attachment to a predefined email id.

My requirement is that when the user clicks on the SUBMIT buton, all the fields should be changed to readonly mode.

What type of button should i use, since it is a offline form.

which event should i write the code that when the submit button is clicked, all the fields become readonly.

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Mohammed,

Use the access property for the elements and write the code in preSubmit event.

Sample code I have shown below.

----- form1.#subform[0].TextField1::preSubmit:form - (JavaScript, client) --------------------------

TextField1.access = "readOnly";
TextField2.access = "readOnly";
TextField3.access = "readOnly";

Additionally check LiveCycle Designer Help and below blog for more information on access property:-

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3092

Chintan

Answers (0)