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

AcroJS and calculated fields #70

@digitalfractal

Description

@digitalfractal

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";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions