Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

AcroJS and calculated fields #70

Open
digitalfractal opened this issue Jan 5, 2019 · 1 comment
Open

AcroJS and calculated fields #70

digitalfractal opened this issue Jan 5, 2019 · 1 comment

Comments

@digitalfractal
Copy link

Hello All,

has anyone implemented AcroJS calculation for fields?

this is code that can be added as a formula to make calculations such as

var s1 = +getField("spent1").value;
var s2 = +getField("sched1").value;
var d1 = +getField("datec1").value;
if(d1 == 0 && s1 == 0) event.value = "";
else {
if(d1 == 0 && s1 != 0) event.value = "In Progress";
if(d1 != 0 && s1 == s2) event.value = "On Schedule";
if(d1 != 0 && s1 < s2 && s1 != 0 ) event.value = "Under Schedule";
if(d1 != 0 && s1 > s2 ) event.value = "Over Schedule";
}

@digitalfractal
Copy link
Author

@StefanoBiasu, would you know if AcroJS can be implemented with this PDF library?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant