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

Create text field and read content

Participant ,
Apr 17, 2017 Apr 17, 2017

Copy link to clipboard

Copied

Hi

I create dialog and add button, list and i need to add textfield and read text from it

textfield.jpg

  var w = new Window("dialog", "MyForm");

  var grp = w.add ('group');

  w.closeBtn = grp.add('button',undefined, 'Close', {name:'close'});

w.show();

Thanks

TOPICS
Scripting

Views

313

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

Participant , Apr 17, 2017 Apr 17, 2017

var artTitle = grp.add('edittext');

artTitle.minimumSize.width = 200;

alert(artTitle.text);

Votes

Translate

Translate
Participant ,
Apr 17, 2017 Apr 17, 2017

Copy link to clipboard

Copied

var artTitle = grp.add('edittext');

artTitle.minimumSize.width = 200;

alert(artTitle.text);

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 ,
Apr 17, 2017 Apr 17, 2017

Copy link to clipboard

Copied

It's not entirely clear to me what you're after.

P.

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
Participant ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

LATEST

I want only add edittext field into dialog.

I use it in my sctipt and pass information via rest api.

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