how to hide the price of my dropdown items and show the total in the field with the currency symbol?

  • pamds
    Asked on March 11, 2014 at 8:12 AM

    Hi!

    I would like to put a question:

    - Is there a way when a choose a text value in a dropdown box (like a destiny to a transfer), a calculated fied show me the cost associated with the choosed destiny in the dropdown box?

     

    Thanks in advance...

     

    Paulo S.

  • pinoytech
    Replied on March 11, 2014 at 10:06 AM

    Hi Paulo,

    Yes, that is possible and it seems like you already manage to do that calculation in your form upon checking it. Here's what I see: http://www.screencast.com/t/PjQuMpW9LCJJ

    If you need further assistance, please feel free to contact us again at anytime.

  • pamds
    Replied on March 11, 2014 at 10:48 AM

    Hi again!

     

    Thanks for beeing so fast in answer... Yes that's true that i managed to get there but... Is there a way to hide the values in € showing only the places in the dropdown box, not to be visible?

     

    Thanks again.

     

    Paulo S.

  • pinoytech
    Replied on March 11, 2014 at 11:34 AM

    Hi,

    I'm not quite sure what you mean by hide the values. Can you please take a look at this clone form if this is what you want to achieve?

    http://www.jotformpro.com/form/40694071508960

    Here are the simple steps you need to do in your form.

    For Destino field:

    how to hide the price of my dropdown items and show the total in the field with the currency symbol? Image 1 Screenshot 40

    For Passageiros field:

    how to hide the price of my dropdown items and show the total in the field with the currency symbol? Image 2 Screenshot 51

    For Calculation field:

    how to hide the price of my dropdown items and show the total in the field with the currency symbol? Image 3 Screenshot 62

    Feel free to contact us again if you need further assistance.

  • abajan Jotform Support
    Replied on March 11, 2014 at 11:42 AM

    Hi Paulo,

    Do you mean that you want the currency to be shown in the Total box instead of the Destino box?

  • pamds
    Replied on March 11, 2014 at 11:52 AM

    Hi...

    Yes that's it... I wanted that in the Destino box only appeared text like: "tavira", "monte gordo", "cabanas". And in Total box i wanted the total amount in €.

    Ex. If i choose tavira destiny with 2 passengers, the total would show 24€.

     

    Clear now? I hope so. Can i achieve this?

     

    Thanks for the support.

     

    Paulo S.

     

  • pamds
    Replied on March 11, 2014 at 12:44 PM

    Hi!

    I understand that it could be a solution. But the problem is that the number of total destiny's will be around 20... So, with this new solution i would have around 20 radio buttons... That's the reason i wanted to do with a dropdown box...

  • abajan Jotform Support
    Replied on March 11, 2014 at 3:20 PM

    Hi again Paulo,

    I don't think it's possible to do this in the form builder. So, you would have to get the full source of the form and embed it into a web page along with a script. That's what I did here. The script can be seen at the bottom of the page's source, just before it's closing body tag.

    Is that the sort of functionality you wish to have in your own form?

  • pamds
    Replied on March 12, 2014 at 5:01 PM

    Hi Abajan...

    I've seen your script and it's exactly this that i wanted!

    Manny thanks for the support all of you have been great!

    Thanks again and my best regard's for all of you...

     

    Paulo S.

     

  • abajan Jotform Support
    Replied on March 12, 2014 at 8:40 PM

    Hi glad we could help, Paulo :)

    If you need further help with this please let us know.


    Cheers