- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I have a subform with two fields , one a date field to capture current system date and time and another is a Text field for some comments.
Then there are two buttons ,one for Adding the instance for these two fields and another is a Save button which makes these two fields
The requirement is that once both the fields are filled with data and i click on save button, the fields should become read only ,however when i click on the add instance button the instance is added successfully but the save button click is not making the new instance read only.
The Code for Add Instance Button is :
"New1.FileNote.instanceManager.addInstance(true);
xfa.form.recalculate(true);"
The code for Save button to make the fields read only is :
New1.FileNote.DateTimeField101.access = "readOnly";
New1.FileNote.TextField37.access = "readOnly";
Please guide me as I am totally blank on how to code the same..Have a rough logic of using a for loop with index of the Add Instance but not getting the way out for the code.
Thanks a lot for any help and guidance.
Views
Replies
Total Likes