Make your check box fields at the top global fields so that their contents are accessible even after you change layouts.
In your script to create a new record in the portal add lines that fill the text field with the contents of your check box fields.
Set Variable [$PatientNr ; Value: SocialHistory:: PatientNr]
Go To Layout [ExaminationbyPatientNr]
Set Field [ExaminationbyPatientNr::$PatientNr]
Set Field [ExaminationbyPatientNr::All The Symptoms ; SocialHistory::gCheckbox1 & ¶ & SocialHistory::gCheckbox2 & ¶ & SocialHistory::gCheckbox3 & ¶ & SocialHistory::gCheckbox4]
Go To Layout [Original Layout]
Keep in mind that if you make multiple selections in a single check box field each selection will show as a separate line of text. You may want to use the subsitute function to replace ¶ (carriage returns) with some other text such as a comma and space to reduce the number of lines of text that are copied to the text field.
Wow man, I love you!
I knew your little "magician-wise man" icon would solve my 3days lasting problem.