cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform printing (Text)

Former Member
0 Kudos

Hi

i am working on smartforms . In smartform where we maintain smartform text in editor i have taken fields ....

now the problem is when one of the address fields is blank it leaves space.i want to delete tht space.

ex:

&street_1&

&street_2&

&street_3&

now in the above code if street 1 and street 3 have value and 2 doesnt have in my code it doesnt print but in output it still take space for tht street 2. i dont want tht space and street 1 and street 2 should be continuous.

Thanks......in Advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member156446
Active Contributor
0 Kudos

you need to split the address each into one text, and have a condition on the text as stree_1 NE space...etc..

Former Member
0 Kudos

Hi

first thanks for ur ans......

i have one more query about this question.....

i split the address each into one text...........

now client wants street_3 on separate (next line) but with attach street_1 or street_2

Answers (4)

Answers (4)

Sandra_Rossi
Active Contributor
0 Kudos

Santosh, next time use a meaningful text like "smartform delete empty line in address". Thanks.

Former Member
0 Kudos

Hi,

Concatenate the street1,street2 and street3 into a variable and then condense and display them.

OR

Use conditions for printing

If &street1& IS NOT INITIAL OR &street2& IS NOT INITIAL OR &street3& IS NOT INITIAL.

&street_1&

&street_2&

&street_3&

elseif &street2& is not initial.

&street_1& &street_2&

&street_3&

endif.

NAeda
Contributor
0 Kudos

Hi,

Create One FOLDER , add these text fields into that folder.

Hope this solve your problem.

Rgds

Aeda

Former Member
0 Kudos

Hi,

Try to push the address into a string variable but check if the variables are initial or not and print it.

Ex:

&street_1&

&street_2&

&street_3&

check &street_1& NE '' AND &street_2& NE '' AND &street_3& ""

then pass the &new_var& = &street_1&&street_3&

Regards,

Aditya