• Resolved lighthouseto

    (@lighthouseto)


    I need to understand how I can make a drop down that has fieldnames as values. The user is choosing 3 options which correspond to 3 calculated form fields. The option will determine final cost. When I put fieldname9 into the value for the drop down option it doesn’t seem to pass the value of fieldname9 to the drop down. What do I need to put there? <fieldname9>? Nothing seems to work…

    Please advise.

    https://www.ads-software.com/plugins/calculated-fields-form/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter lighthouseto

    (@lighthouseto)

    There must be someway to pass the calculated field value into the drop down…

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, but I don’t understand your question. I guess you are trying to use the fieldname# as the values of the dropdown’s choices to emulate the dependencies. Why not use dependencies directly? or why not use conditional statements in the equations?

    Best regards.

    Thread Starter lighthouseto

    (@lighthouseto)

    Because I can’t. It doesn’t work like that. The user goes through the process and selects variations which determine the costs. Then they select payment method which varies the cost slightly OR doesn’t. In that case I want to just be able to put a fieldname in the value and have that become the value if selected. But this doesn’t seem to work.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Could you send me the link to your page, and a description of your form, to understand the process, please?

    Best regards.

    Thread Starter lighthouseto

    (@lighthouseto)

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I see what you want to do, but the plugin does not work in this way. Please, modify form as follow:

    In your current form the choices in the “Payment Method” field are:

    – Select payment option, with the value: Select payment option
    – Credit Card, with the value: fieldname9
    – Cheque, with the value: 0
    – eTransfer, with the value:0

    Modify the values of choices like follow:

    For Select payment option, set the value: 0
    For Credit Card, set the value: 1
    For Cheque, set the value: 0
    For eTransfer, set the value:0

    Now, insert a new calculated field in the form with the equation: fieldname9*fieldname15, the new calculated field is not important in the form’s interface, so, I recommend to tick the field’s attribute: “Hide Field From Public Page”,
    and that’s all.

    The final price, that depends of payment method would be stored in the last calculated field.

    Best regards.

    Thread Starter lighthouseto

    (@lighthouseto)

    GENIUS! I’ve implemente and it works perfect
    Thank you love the plugin

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Drop down with fieldname as value’ is closed to new replies.