Blank Spaces leading the text field | Community
Skip to main content
tharuny741
Level 2
August 14, 2018
Solved

Blank Spaces leading the text field

  • August 14, 2018
  • 7 replies
  • 7607 views

Hey guys ,

I have 5 text fields vertically one over the other in the layout name,address, street , street2 , post code . I have binded the text fields with an internal table(SAP) that populates the data on to the text field. Among the five two fields street 2 and post code works fine without any space leading them but the other three fields are having a blank space leading them i.e. blank space and name/address/street gets printed. How to remove the blank spaces using javascript or formcalc and which event is to be used ?

Please help me out.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by tharuny741

Issue is solved , added formcalc script to those fields

Event : Calculated

var c = data.Main.Address.Name.rawValue

$.rawValue = ltrim(c)

But still could not find where the spaces came from

7 replies

_Bruce_Robertson
Level 10
August 15, 2018

Hi,  Are you wanting to remove blank spaces from the data coming from the SAP system or remove the left indent on the field in the Paragraph palette?

Could you include a screen shot of the problem?

tharuny741
Level 2
August 15, 2018

I don't know where's the problem , tried removing the leading spaces in SAP coding but still i'm getting spaces

You can see in the image first three fields have space leading them , there is no left indent for those fields.

_Bruce_Robertson
Level 10
August 15, 2018

So is this a text field with floating fields in it?  Is it possible for you to share your form (or a simple form showing the problem) and add a link to it here.

tharuny741
Level 2
August 15, 2018

This is a text field only not floating field, sorry i can't share the form

_Bruce_Robertson
Level 10
August 15, 2018

That makes it difficult to investigate, but I would be surprised if it was a product fault, maybe delete the fields and add then in again.

tharuny741
Level 2
August 15, 2018

Tried that , also used text and floating field binded the name to it same result. Dont know where the problem is

tharuny741
tharuny741AuthorAccepted solution
Level 2
August 16, 2018

Issue is solved , added formcalc script to those fields

Event : Calculated

var c = data.Main.Address.Name.rawValue

$.rawValue = ltrim(c)

But still could not find where the spaces came from