Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi
i want to reset the value of a field dynamically.
thanks
try this
sub resetinput
dim x(1)
x(0) = 0 ' element to reset
set fld = ActiveDocument.Fields("NewPrice")
fld.ResetInputFieldValues 0, x ' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value
end sub
here NewPrice is my inputfield
so, you only generate an action eithe through button or on post data..
i attached file also.
hope it helps...
try this
sub resetinput
dim x(1)
x(0) = 0 ' element to reset
set fld = ActiveDocument.Fields("NewPrice")
fld.ResetInputFieldValues 0, x ' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value
end sub
here NewPrice is my inputfield
so, you only generate an action eithe through button or on post data..
i attached file also.
hope it helps...
hi mohit
its working fine. thanks for quick reply