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]);
}
Copy also the function SetTextField.
Copy link to clipboard
Copied
Copy also the function SetTextField.
Copy link to clipboard
Copied
Thank you, finally managed to find the function "SetTextField" under document javascript
Cheers