cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning text's value with floating field to other text

Former Member
0 Kudos

Hello,

I have an issue with floating fields.

I need dynamic appearence of different texts within a text field. This could be easily achieved by using floating fields which contains those different possible texts.

But if I try to assign (using script) different text which also contains floating fields to this floating field (or even other static text field) then values of floating fields are lost.

For simplified example:

FloatingField = "this example"

StaticText1 = "Test {FloatingField}"

StaticText = " "

FormCalc Script for StaticText in INITALIZE part:

StaticText = StaticText1

StaticText recieves just static value from field StaticText1 loosing value of floating field, i.e., StaticText = "Test ".

Is there a way not to loose value of floating field? ...and to get StaticText = "Test this example".

Best regards,

Rorijs

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Try this:-

StaticText.rawValue =  StaticText1.rawValue + FloatingField.rawValue;

I hope it will work.

Regards,

Amit

Former Member
0 Kudos

Hello Amit,

Thank you for answer! Such approach is usable just for this simplified example. But your suggestion does not help to hande this issue if I will give you such example:

StaticText1 = "Test {FloatingField} carefully"

Best regards,

Rorijs