Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smart form text continuation issue

svasi_08
Participant
0 Likes
2,489

I have 2 conditions in smartform and need to display text one after other.

But as of now the second text is coming in next line, how to bring in same line?

example:

If sal > 0.

text1.

if bonus > 0.

text 2.

I want text 1 and text 2 appear in same line. but text 2 starting from next line how to avoid that?

1 ACCEPTED SOLUTION
Read only

danilo_henriques
Explorer
0 Likes
2,354

You can always create a variable in the global definitions of the form and use program lines to achieve your objective.

Right Click -> Create -> Flow Logic -> Program Lines

If sal > 0.

v_text = text1.

if bonus > 0.

v_text = text2.

And now you can use v_text in yout text element instead of text1 or text2.

Regards.

I have 2 conditions in smartform and need to display text one after other.

But as of now the second text is coming in next line, how to bring in same line?

example:

If sal > 0.

text1.

if bonus > 0.

text 2.

I want text 1 and text 2 appear in same line. but text 2 starting from next line how to avoid that?

8 REPLIES 8
Read only

former_member1716
Active Contributor
2,354

svasi_08,

This is usually controlled by smart style used for the relevant variable.

Can you please let us know the details of how the variable is declared and what smart style is used?

One simple solution would be concatenation of both text 1 and text 2 into a single variable say text 3. Now display only text 3. Below code could give you an idea. Am using text 3 only for your understanding, you can even concatenate in text1 also.

Concatenate text1 text2 into text3 separated by space. 

Regards

Read only

danilo_henriques
Explorer
0 Likes
2,355

You can always create a variable in the global definitions of the form and use program lines to achieve your objective.

Right Click -> Create -> Flow Logic -> Program Lines

If sal > 0.

v_text = text1.

if bonus > 0.

v_text = text2.

And now you can use v_text in yout text element instead of text1 or text2.

Regards.

Read only

Sandra_Rossi
Active Contributor
2,354

You should use the right paragraph format so that the second text continues after the first one. What did you use? (what "??" did you define?)

/:  If sal > 0
??  text1.
/:  if bonus > 0
??  text2.
/:  endif
/:  endif
Read only

svasi_08
Participant
0 Likes
2,354

SANDRA where should I write this if SAL > 0 ? or Bonus > 0. ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,354

svasi_08 In fact there are lots of solutions. I thought you had just one text node containing all the lines I mentioned (text2 is displayed only if both sal > 0 and bonus > 0). But as you didn't understand my question, it seems I was incorrect (it's still possible but it should be as below), in fact you had two distinct text nodes with output conditions. Or maybe two alternative nodes with two text nodes. So, either choose Satish or Danilo solution, or derive my question above to a solution if you understand what I meant.

Read only

svasi_08
Participant
0 Likes
2,354

Sandra thank you very much for the follow up answer and thanks for always being there when needed.

I applied simple logic like I put 2 yes or no.

If yes display whole text together i.e. text1, text2.

If no display only text1. Hope this is fine, thanks.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,354

Fine. Please mark the best answer (eventually create your own answer) and close the question.

Read only

svasi_08
Participant
0 Likes
2,354

Answered self using the Yes or No option.Closed this.