Avatar

Level 2

I have a numeric field titled Provider_Index, set to a default value of "1".  I need the numeric field to increment by 1 each time I click the button "AddAdditionalProvider."  Below is the current syntax associated with the button, but the counter will not increment.

Suggestions?

form1.EXP_Sample_Form.Buttons.AddAdditionalProvider::change - (FormCalc, client)

if (xfa.host.version < :smiling_face_with_sunglasses: then

    EXP_Sample_Form.Bottom_of_Form.Provider_Type.Provider_Index.rawValue = rawValue + 1

endif