Since I am a HotDocs CIC now, I decided that I am going to post some basic coding.
Here is the scenario I had yesterday. I was working on a succession for an estate planning attorney. In the succession we ask for all the list of children from all marriages. Further down the document, there is a place for all of the heirs. I know a lot of the heirs are going to be the children, and I don't want my user to type in all of the children's names again. Here is the coding that I used:
I Created a Multiple Choice Variable Called Child Heir MC. The first option was none of the above. There were no other options.
I created a computation variable called Child Heir CO
REPEAT Child DI
ADD Child name Name CO TO Child Heir MC
END REPEAT
I inputed this CO into the document.
Here is what it looks like finished:
You can either choose from the list of children, or select, None of the Above, and type in the Heir information. This keeps the document consistent and makes it very easy on your end user.
To make this work properly in the document, I had to change my Heir Name CO to this:
IF Child Heir MC = "None"
""
"«Heir First Name TE»"
IF ANSWERED( Heir Middle Name TE)
RESULT + " «Heir Middle Name TE»"
END IF
RESULT + " «Heir Last Name TE»"
IF ANSWERED( Heir Name Suffix TE)
RESULT + " «Heir Name Suffix TE»"
END IF
ELSE
Child Heir MC
END IF

Comments