‎2014 Aug 15 11:35 AM
I have created a work address field for an employee on my smartfrom.
None of the fields are mandatory so i would like my form to remove a line/carriage return if the field is blank.
I have tried to do it this way using the command option
IF NOT &P0006-STRAS& = ' '
&P0006-STRAS&
ENDIF
IF NOT &P0006-LOCAT& = ' '
&P0006-LOCAT&
ENDIF
Etc.....
Is there an simple way to do this or am i missing anything that may be causing this not to work?
‎2014 Aug 15 12:04 PM
‎2014 Aug 15 12:16 PM
‎2014 Aug 15 12:41 PM
Hi
In smartforms, the text field have a 'Conditions' tab, you can set your condition there.
regards,
Archer
‎2014 Aug 15 12:49 PM
I have it set in the condition tab already, thats why im not sure why its not working
‎2014 Aug 15 4:55 PM
i had same requirement and achieved by this logic:
IF &P0006-STRAS& NOT initial AND
&P0006-LOCAT& NOT initial.
&P0006-STRAS& - &P0006-LOCAT&
ELSEIF &P0006-STRAS& NOT initial AND
&P0006-LOCAT& IS initial.
&P0006-STRAS&
ELSEIF &P0006-STRAS& IS initial AND
&P0006-LOCAT& NOT initial.
&P0006-LOCAT&
ENDIF
use condition tab of text element only. in 2nd and 3rd if condition there will not be any line feed.
Rgds