Field Update Based on Checkbox
Hello,
I have a requirement to fulfill in Adobe forms:
I already have a checkbox that is checked based on an Export Value that I have set and that value comes from Salesforce. The requirement is to fill another text field if that checkbox is checked. The problem is that when I do this the only value that comes is "Off" or ""(empty string). The good thing is that the checkbox is checked if the value that comes from Salesforce is true - so the checkbox is working. The problem is only for the text field which has the following javascript:
if (this.getField("CheckBox").isBoxChecked(0))
{event.value = "Test";}
else {event.value = "";}
Also if I try to not use the value from the Adobe Form Checkbox and instead use the value from Salesforce(that helps to check the checkbox), still it is not working:
if (this.getField("Field From Salesforce").value == True)
{event.value = "Test";}
else {event.value = "";}
