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

Checkbox to fill empty fields....

Engaged ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

Hi all,

 

I have a form with 14 fields (Weight1, Weight2 etc.) and that if there is no numeric or textual value added to the field, that the checkbox (when selected) enters a default textual value ('EMPTY') to only the empty fields - possible/plausible?.

 

Thanks! 

TOPICS
PDF forms

Views

349

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 , Mar 11, 2021 Mar 11, 2021

As Mouse UP event of checkbox use this:

for (var i=1; i<=14; i++)
if(event.target.value != "Off" && this.getField("Weight"+i).value == "")
this.getField("Weight"+i).value = "EMPTY";

 

Votes

Translate

Translate
Community Expert ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

As Mouse UP event of checkbox use this:

for (var i=1; i<=14; i++)
if(event.target.value != "Off" && this.getField("Weight"+i).value == "")
this.getField("Weight"+i).value = "EMPTY";

 

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
Engaged ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

LATEST

Thnaks Nesa, thats great 😉

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