error SetTextField is not defined

Community Beginner ,
Apr 17, 2022 Apr 17, 2022

Copy link to clipboard

Copied

Hi

I have copied the script from JR Boulay's Menus_deroulants.pdf

 

I have put this button with script in Actions → Run Javascript on page 1

I have Text Field → incStamp on page 2 & text field → resetStamp on page 3

I am getting error

ReferenceError: SetTextField is not defined

27:Field:Mouse Down

Please advise, Thank you

 

var c = { 'Black':['G',0],
'White':['G',1],
'Dark grey':['G',0.25],
'Blue (CMYK)':['CMYK',1,1,0,0],
'Light blue (CMYK)':['CMYK',1,0.5,0,0],
'-':[ ],
'Red (RGB)':['RGB',1,0,0],
'Green (RGB)':['RGB',0,1,0],
'Purple (RGB)':['RGB',0.47,0,.466] }

var n = new Array('Stroke color :');
for (var i in c) n.push(i);

var result = app.popUpMenu(n);
if (result) {
  SetTextField('incStamp','strokeColor',c[result]); 
  SetTextField('resetStamp','strokeColor',c[result]); 
}

 

 

TOPICS
JavaScript

Views

71

Likes

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

Adobe Community Professional , Apr 17, 2022 Apr 17, 2022
Copy also the function SetTextField.

Likes

Translate

Translate
Adobe Community Professional ,
Apr 17, 2022 Apr 17, 2022

Copy link to clipboard

Copied

Copy also the function SetTextField.

Likes

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 Beginner ,
Apr 17, 2022 Apr 17, 2022

Copy link to clipboard

Copied

LATEST

Thank you, finally managed to find the function "SetTextField" under document javascript

 

Cheers 

Likes

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