Expand my Community achievements bar.

copy two rich textboxes in to one

Avatar

Level 2

Hi,

Does anyone know how to adapt this example so it would copy two text boxes in to one?

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000838.html

thanks

2 Replies

Avatar

Level 5

I'm not sure if I understand you.

The content from two or more fields to copy into one filed ist not so difficult.

  • Copy the following script in the calculate-Event from the targetfield.
  • You can connect fieldentries with +
  • If you want to connect with a static string you can use "here comes your static text"
  • You can also use the script in the exit-Event of the surname- and birthplace- and/or  birthdate-field.

if(surname.rawValue == null || birthplace.rawValue == null || birthdate.rawValue == null)

{

}else

{

    this.rawValue = surname.rawValue + " born in: " + birthplace.rawValue + " born at: " + birthdate.rawValue;

    //this.rawValue = surname.rawValue + ", " + birthdate.rawValue;

}

I hope it was helpull for you,

Mandy