on 11-23-2009 7:51 AM
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
you need to split the address each into one text, and have a condition on the text as stree_1 NE space...etc..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Santosh, next time use a meaningful text like "smartform delete empty line in address". Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create One FOLDER , add these text fields into that folder.
Hope this solve your problem.
Rgds
Aeda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.