Copy link to clipboard
Copied
i have a drop down with this code:
I am trying to add code so i can add all of the weights together for the net weight to be populated in another text box. is this possible and can anyone help me do it please? thank you!
Copy link to clipboard
Copied
Here is your file with changes made (Step 1), first two fields will work, rest you need to fill on your own:
https://drive.google.com/file/d/1QKDb1RA01bM8x7BGNaz89FBPQVPLNUG1/view?usp=sharing
Copy link to clipboard
Copied
i can keep the validation script as "description" even though i changed the name to "text field" in the screenshot?
Copy link to clipboard
Copied
when trying to enter the code into the document level java script i get the following error message... any help please?
Copy link to clipboard
Copied
You need to have a comma in each line after closing the curly bracket, only the last line doesn't need a comma.
Copy link to clipboard
Copied
i put a comma after the curly bracket and it still gives me the same error message?
Copy link to clipboard
Copied
is there no way to delete comments on here? that was the issue it now works i am now going through and adding commas in the right place. i will let you know how i get on.
thank you very much for all the help its much appreciated 🙂
Copy link to clipboard
Copied
sorry wrong screenshot i meant this one:
Copy link to clipboard
Copied
The error is in the line above the blue line.
You miss a \ before ".
Copy link to clipboard
Copied
thank you very much for the help
Copy link to clipboard
Copied
after adding commas after every curly bracket i get this error messsage
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Check the Javascript console (ctrl-j) for errors.
Copy link to clipboard
Copied
Your field is named "qty1" not "QTY1".
Copy link to clipboard
Copied
When i change the quantity field to QTY1 it now only works for the quantity field. it populates as 1. However the description and weight does not populate.
Copy link to clipboard
Copied
In the list for "XCR0001" you have space " XCR0001", you have a lot of entries like that, if you use "XCR0001" instead of " XCR0001" it will work,
fix that for all entries.
Also you have a lot of duplicates.
Copy link to clipboard
Copied
ive deleted all the duplicates, removed the spacing. to the point where the whole dropdown works when i make any selection from the drop down. i have almost finished the entire document however i noticed some lines just do not work. which is weird because im doing the exact same thing as the rest of the document.
for example:
the qty,description and weight follow the same suit for 23/24. however qty24 when makking a selection does not popoulate anything.
Copy link to clipboard
Copied
"QTY 24" have space in its name and in the script you use without space "QTY24".
Copy link to clipboard
Copied
almost all the code/document works. however, i have noticed that for some reason there is a few random 'KG' fields apppearing in the weight field. i removed all 'kg' so that only the numbers appear to make the calculations easier. However they somehow appear again... but only on some lines and not others which makes no sense as its a document level script and should populate everything the same. Could you please take a look at the document please. thank you very much.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
On the second page, you didn't remove custom calculation scripts from dropdown fields.
Copy link to clipboard
Copied
on the first page i removed the custom scripts and it still shows as kg as the default value.
also the drop down when selecting options does not work even though i filled in the new code
Copy link to clipboard
Copied
nevermind. somehow removing the script from the second page effected the first page. i was using the first page as a test for your new code and left the second page as it is. when i updated the second page it fixed my issue on the first page. i am going to run some tests on the document but it all appears to be working like a charm. plus you have fixed my issue of the code being duplicated 60 times. this will help massively when i update weights as i only need to do it once rather than 60 times.
i cant thank you enough for all the help. i am sorry i made it so painful. but we got there in the end haha. if i have any other issues i will let you know, but for now all i can say is thank you 🙂
Copy link to clipboard
Copied
could you help me with another issue im having please with a different document? its driving me crazy haha
Copy link to clipboard
Copied
Post a new question
Copy link to clipboard
Copied
Okay thank you
Copy link to clipboard
Copied
Check also the other field names.