Link in Zwischenablage kopieren
Kopiert
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!
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
i can keep the validation script as "description" even though i changed the name to "text field" in the screenshot?
Link in Zwischenablage kopieren
Kopiert
when trying to enter the code into the document level java script i get the following error message... any help please?
Link in Zwischenablage kopieren
Kopiert
You need to have a comma in each line after closing the curly bracket, only the last line doesn't need a comma.
Link in Zwischenablage kopieren
Kopiert
i put a comma after the curly bracket and it still gives me the same error message?
Link in Zwischenablage kopieren
Kopiert
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 🙂
Link in Zwischenablage kopieren
Kopiert
sorry wrong screenshot i meant this one:
Link in Zwischenablage kopieren
Kopiert
The error is in the line above the blue line.
You miss a \ before ".
Link in Zwischenablage kopieren
Kopiert
thank you very much for the help
Link in Zwischenablage kopieren
Kopiert
after adding commas after every curly bracket i get this error messsage
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
Check the Javascript console (ctrl-j) for errors.
Link in Zwischenablage kopieren
Kopiert
Your field is named "qty1" not "QTY1".
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
"QTY 24" have space in its name and in the script you use without space "QTY24".
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
On the second page, you didn't remove custom calculation scripts from dropdown fields.
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
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 🙂
Link in Zwischenablage kopieren
Kopiert
could you help me with another issue im having please with a different document? its driving me crazy haha
Link in Zwischenablage kopieren
Kopiert
Post a new question
Link in Zwischenablage kopieren
Kopiert
Okay thank you
Link in Zwischenablage kopieren
Kopiert
Check also the other field names.
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen