Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
14

How do I keep an entered value

Explorer ,
Feb 13, 2024 Feb 13, 2024

The value I put in "No of UTs" changes when I change something about "Proj Length" or click one of the check boxes. I want the value I put in "No of UTs" to stay the same if I modify the "Proj Length" or click one of the check boxes. I also want the script in "Complexity" to recognize any changes to the form.

TOPICS
General troubleshooting , PDF , PDF forms
977
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Feb 13, 2024 Feb 13, 2024

In the "Complexity" field script you use single equal sign = to compare, you need to use double equal signs ==, like this:

if((this.getField("Proj Length").value < 1) && (this.getField("No of UTs").value == 4))
{
event.value = 4;

Fix all the lines where you used one = for compare.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 13, 2024 Feb 13, 2024

The calculation code for "Complexity" is overwriting the value you're entering due to errors in it. Did you create this form? If not, report it to the author.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 13, 2024 Feb 13, 2024

In the "Complexity" field script you use single equal sign = to compare, you need to use double equal signs ==, like this:

if((this.getField("Proj Length").value < 1) && (this.getField("No of UTs").value == 4))
{
event.value = 4;

Fix all the lines where you used one = for compare.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 13, 2024 Feb 13, 2024
LATEST

Thank you Nesa this fixed the problem! Your help with this project has been tremendous

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines