Quantcast
Channel: Adobe Community: Message List - PDF Forms
Viewing all articles
Browse latest Browse all 57214

Re: How do I make custom app alert buttons?

$
0
0

Thanks very much, again! I seem to be having trouble running any sort of calculations as a result of the selection. Here is some rough sample code I have so far:

 

// Dialog Definition

var oDlg = { description: { name: "Test Dialog", elements: [ { type: "cluster", elements: [ { name: "Choose Body Type:", type: "static_text", }, { name: "Organic", type: "radio", item_id: "sub1", group_id: "rad1" }, { name: "Enhanced", type: "radio", item_id: "sub2", group_id: "rad1" }, { name: "Synthetic", type: "radio", item_id: "sub3", group_id: "rad1" }, ] },{ type: "cluster", elements: [ { name: "Choose Mind Type:", type: "static_text", }, { name: "Neural", type: "radio", item_id: "mind4", group_id: "rad2" }, { name: "Circuited", type: "radio", item_id: "mind5", group_id: "rad2" },]},{ type: "view", elements: [ { type: "ok_cancel", item_id: "OKC" },]},] } };

// Dialog Activation

app.execDialog(oDlg);

 

if (OKC == "ok") {

if (sub1 == "true") {

if (mind4 == "true") {

getField("Name").value = "TEST";};};}

 

I'm trying to get the button to set field values based upon BOTH radio selections. It seems I'm missing out how I reference the chosen element values in post dialog scripts. Again, thanks so much for all your help so far. I'm very close!


Viewing all articles
Browse latest Browse all 57214

Trending Articles