cancel
Showing results for 
Search instead for 
Did you mean: 

Assign value problem

Former Member
0 Kudos

hi all;

can we submit multi value with the assign value in our data service??

for exmp

In the enter formula i want to pass multi value

if( A==true,value1 and value2 , value3 and value4 and value5) like this but i cant.. i can only submit one value

if( A==true,value1,value2) like this.

In the Visual composer can i do this??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can anyone help me about this?

Former Member
0 Kudos

Ozan,

if i understand your req correctly, you need to map multiple values to the input variable of your data-source.

you could formulate an expression to concatenate val 1, val2 and vals 3/4/5 using the following exp:

if (a == true, val1 & ',' & val2, val3 & ',' & val4 & ',' val5). replace commas with whatever delimiter value that your data service accepts.

prachi

Answers (3)

Answers (3)

Former Member
0 Kudos

hi prachi

thank u for your help. your solution is excellent:)

Former Member
0 Kudos

hi;

i know this one but it isnt solution.

i want this one :

if( A==true,value1 and value2 , value3 and value4 and value5) in this formula i want submit value1 and value2 or value3 and value4 and value5 with assing value.So (if) true i want to submit 2 value, (else) i want to submit 3 value.But Visual Composer let me submit only single value.(e.g value1)???

i can do this??

Former Member
0 Kudos

Yes you can. Substitute your else statement with a new nested if-then-else statement.

Here is one I am using:

IF(@QUOTATYPE_N==11,'Value1',IF(@QUOTATYPE_N==14,'Value2',IF(@QUOTATYPE_N==21,'Value3',IF(@QUOTATYPE_N==22,'Value4',IF(@QUOTATYPE_N==23,'Value5')))))

Hope it helps.

Henning