Skip to main content
Nintex Community Menu Bar

Build String Action with fn-PadLeft or fn-PadRight Function Returns Unexpected Results

  • March 26, 2021
  • 0 replies
  • 299 views

butlerj
Nintex Employee
Forum|alt.badge.img+20

ISSUE

When using a Build String action that includes the fn-PadLeft or fn-PadRight inline function, the text does not render as expected. For example, when using the following function, where the ItemProperty ID has a value of 4, the expected result is "400" but the actual result is "4":
fn-PadRight({ItemProperty:ID}, 3, 0)
 

RESOLUTION

Verify that there is no space between the comma and the optional padding character. For example:
  • fn-PadRight({ItemProperty:ID}, 3,0)  will render as expected.
  • fn-PadRight({ItemProperty:ID}, 3, 0)  does not render as expected, due to the space after the comma and before the zero.