Adding a Carriage Return to a default

I have a task set up to add new staff records, it default adds all sorts of fields including address block. I can't work out how to add a carriage return so that address line 1 is first and address line 2 is on the next line. Any expression ideas please?

Comments

  • Replying to my own thread hoping it may bump it to be seen…. ?

  • @Lisa Fields
    Just to clarify, are you asking how to add that default from within the Expression syntax of a task? Would you mind sharing some of what you have to do those defaults today?

  • @Joseph Styons sorry, I don't quite understand the question?

    I am adding the address field to the new individual constituent record. I have a task set up to ShowAddDataForm (Individual, Spouse, Business Add Form) and that has 10 defaults set. All defaults are fine except for the one that adds ADDRESS_ADDRESSBLOCK. I have it set to expression with text for my address lines but I want the text to show as 2 rows.

    Hope my explanation helps ?

  • @Joseph Styons did you see my reply? Any help would be appreciated ?

  • @Lisa Fields Hi Lisa, I think you can do it with an expression like this

    = String.Concat(Fields!ADDRESSLINE1, vbCrLf, Fields!ADDRESSLINE2)

    Where you plug in your fields, and add in a vbCrLf to add a new line between them.

  • Thanks @Benjamin Seitz

    I can't get that to work. It just adds this in the address:

    059019ee0779f65e45848ae69f7ac3d1-huge-im


    Here is how I added it:

    458ac60df0d5af7baa821fc9a60a0d53-huge-im

Categories