Mixed formatting with a Calculated Value

  • 8 November 2017
  • 2 replies
  • 0 views

Badge +7

By way of example, let's say I have the following three Single Line Text fields on a form:

  • firstName
  • lastName
  • jobTitle

and my Calculated Value, which is used for previewing purposes, uses the following formula:

firstName + " " + lastName + ", " + jobTitle

The displayed result would be something like this:

John Doe, Manager

But I'd like to have the just the name appear in bold, as follows:

John Doe, Manager

When applying a format to a Calculated Value, it applies to the entire field which is not ideal. Rich Text controls, on the other hand, allow for mixed formatting, however, they do not support Named Controls as references (only Item Properties).

Can this be achieved?

BTW I'm using Nintex Forms 2016 (v4.2.2.0).


2 replies

Userlevel 5
Badge +14

try formula like

"<strong>" + firstName + " " + lastName + "</strong>, " + jobTitle‍

‌ part of string‌

Badge +7

That worked a treat, thank you!

Reply