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

How do I keep an entered value

Explorer ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

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

Views

256

Translate

Translate

Report

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

correct answers 1 Correct answer

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.

Votes

Translate

Translate
Community Expert ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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