
Is there a way to do this?
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Stefan - PDF-XChange
Code: Select all
var idx = getField("Fruit").currentValueIndices;
if (idx == 0)
event.value = 10.0;
else if (idx == 1)
event.value = 20.0;
Code: Select all
if (!event.willCommit)
return;
var price = 0;
if (event.value = "Oranges")
price = 10.0;
else if (event.value = "Apples")
price = 20.0;
...
if (price > 0)
getField("Price").value = price;
Yes, that helps, thanks!