Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Numeric Fields not working the way I expected

Not applicable
I have tried both pieces of code in the click event, but nothing happens with the WearRing_CaseClearance (numeric field) Field.



var ringDiameter = topmostSubform.Page2.Span[7].WearRing_Case_Diameter.rawValue;

WearRing_CaseClearance.rawValue = ringDiameter;



------------------------------------------------------------------------



var ringDiameter = topmostSubform.Page2.Span[7].WearRing_Case_Diameter.rawValue - topmostSubform.Page2.Span[8].WearRing_ImpellerHub_Diameter.rawValue;



if (ringDiameter < PM_CaseClearanceMIN.rawValue || ringDiameter > PM_CaseClearanceMAX.rawValue)

{

//WearRing_CaseClearance.rawValue = ringDiameter;

///WearRing_CaseClearance.fillColor = '255, 0, 0';

}

else

{

//WearRing_CaseClearance.rawValue = ringDiameter;

//WearRing_CaseClearance.fillColor = '255, 255, 255';

}
2 Replies
Not applicable
The WearRing_CaseClearance field is shown like this -

topmostSubform.Page2.Span[11].P.WearRing_CaseClearance - in Designer.
Not applicable
I found an odd but working solution.



It seems when I converted the Word Document to a PDF, it made each section in my form a span block. Adobe seems to treat span blocks as subforms. So when I right-click (in the hierarchy tab), the span tags, an option of "unwrap subform" is available. Unwrapping all the subforms/spans allowed my fields to see each other regardless of which span block they were in.



Hope this helps anyone else.