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

How to position a field dynamicaly

New Here ,
Jun 03, 2016 Jun 03, 2016

I want to change the coordinates of a text field in javascript. How can I do that?

An example of what I'm trying to achive:

if (this.getField("text1") == "something"){

     //move field

}

TOPICS
Acrobat SDK and JavaScript , Windows
557
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

correct answers 1 Correct answer

Community Expert , Jun 03, 2016 Jun 03, 2016

if (this.getField("text1").value == "something") {

    this.getField("text1").rect = [0, 0, 100, 100];

}

Translate
Community Expert ,
Jun 03, 2016 Jun 03, 2016

if (this.getField("text1").value == "something") {

    this.getField("text1").rect = [0, 0, 100, 100];

}

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
New Here ,
Jun 03, 2016 Jun 03, 2016
LATEST

Thats it! thx

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