• pingsunday

    (@pingsunday)


    Wonderful forms plugin.
    I’ve tried many plugin: CF7, WpForm, Conditional For CF7, Gravity, etc. But Caldera is the best.

    I have one small question. I don’t know the best way to do this simple task.

    I have about 10 Products, and each Product has 3 Options. Viewers need to input “Product ID”, and “Option ID”. And I need to answer, return the Product Name, and is it available in the stock.

    ———-

    Input 1: Please enter Product ID, Select from {1,2,3}

    And then for each product ID, there are some options:
    Input 2 Please enter Option ID: {Option 1, Option 2, Option 3}

    Data:

    ID = 1: Product A: Option 1, Option 2, Option 3
    ID = 2: Product B: Option 1, Option 2, Option 3
    ID = 3: Product C: Option 1, Option 2, Option 3, Option 4

    Output:

    For ID = 1, You have selected Product A, Option 1. Option 1 is in the stock.
    For ID = 2, You have selected Product B, Option 3. Option 3 is in NOT the stock. 

    I’ve tried to build the form, and also the Conditional Group Option. But I wonder if we can use “variable”?

    For example, add the variable “product name”

    If Product ID == "1" then "Product Name" is "Product A"
    If Product ID == "2" then "Product Name" is "Product B"
    If Product ID == 1, and the Option == 1,2 then Output "Out of Stock"
    If Product ID == 1, and the Option == 3 then Output "Avaiable"
    If Product ID == 2, and the Option == 1,2,3 then Output "Avaiable"

    For instance, for each product, and for each Option, I must manually create a new “Field Type”, and then use the Condition Group. But it takes a lot of time, to manually create for each product, and each option.

    Do you have any suggestion? Or the best way to achieve that?
    Thank you very much.

    • This topic was modified 7 years ago by pingsunday.
    • This topic was modified 7 years ago by pingsunday.

The topic ‘Wonderful plugin, need small advice’ is closed to new replies.