Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript dropdown box to change another value in another field automatically

Hi all,
Very new to this and have been scratching my head for the past 2 days without success so really need your help and support and really need the code to resolve this issue :)

I have a pdf fillable form and in prepare a form I have created a dropdown box with 5 items within which are below and wan them to link to another text box with values in £ as detailed below

-Please Select-
Wardrobe
Internal Door
External Door
Skirting
Flooring

Default id -Please Select- Export value 0
What I want is when I have selected Wardrobe, I want the Unit Cost field to be automatically selected with a value of £80.00 Export value 1
What I want is when I have selected Internal Door, I want the Unit Cost field to be automatically selected with a value of £30.00 Export value 2
What I want is when I have selected External Door, I want the Unit Cost field to be automatically selected with a value of £50.00 Export value 3
What I want is when I have selected Skirting, I want the Unit Cost field to be automatically selected with a value of £3.00 Export value 4
What I want is when I have selected Flooring, I want the Unit Cost field to be automatically selected with a value of £45.00 Export value 5

But in the Unit Cost I cannot get it show the value in £?? and obviously the coding is incorrect so please can you help me, many thanks

1701773870695.png
 
It may be that you have only numeric type allowed or that you are not telling that input or text part to include that symbol in your code. You could post your code or a link to it if you want and maybe just relevant parts if you want. I do not know what other than what I mentioned it could be now. X E.
 

New Threads

Buy us a coffee!

Back
Top Bottom