Hello DocuSign Community,
I am currently creating an envelope with multiple merge fields positioned using anchor tags. The client edits these merge fields before completing the document, and the values are then written back to Salesforce. In another process, I want to send this document to another recipient using the Apex Toolkit and a trigger, which works well.
However, I need the previously used merge fields to be read-only in this new context. I'm encountering challenges in recognizing these merge fields through anchor tags in Apex and setting them as read-only.
Here’s a snippet of my code for context:
dfsle.Recipient customer = dfsle.Recipient.fromSource(
'*****',
'********',
null,
s.roleName,
new dfsle.Entity('*****')
).withTabs(new List<dfsle.Tab> {
new dfsle.TextTab()
.withMergeField(myMergeField2) // Associate this tab with the mergeField
.withReadOnly(true) // true = read only or locked
.withAnchor(new dfsle.Tab.Anchor('\\test_1_text\\', false, false, null, false, false, 'pixels', 80, -50))
.withDataLabel('Opp Name')
});