I have added a Checkmark field in my Document Definition that I need to check based on the value in a Character String field.
I am trying to write a script in the Character String field's AutoCorrect Options to test the value to determine if the Checkmark field needs to be checked. I am having problems trying to find the Checkmark field to set it's value.
I have seen several examples on this forum that use Field("fieldname"),Value or Context.Field("fieldname").Value but when I try to use either in my script I get an error saying "The name 'Field' does not exist in the current context" or "The name 'Context' does not exist in the current context".
I can't find anything in the documentation that tells how to access the Field() method.
Am I missing a "using" statement or do I need to use something else to access the Field() method?
Thanks,
Tom
I am trying to write a script in the Character String field's AutoCorrect Options to test the value to determine if the Checkmark field needs to be checked. I am having problems trying to find the Checkmark field to set it's value.
I have seen several examples on this forum that use Field("fieldname"),Value or Context.Field("fieldname").Value but when I try to use either in my script I get an error saying "The name 'Field' does not exist in the current context" or "The name 'Context' does not exist in the current context".
I can't find anything in the documentation that tells how to access the Field() method.
Am I missing a "using" statement or do I need to use something else to access the Field() method?
Thanks,
Tom
コメント
6件のコメント
Method Field belongs to Context object. You can refer to it using the similar code:
Context.Field(“fieldname”).Text
Where do I get the document variable?
Thanks,
Tom
Could you please share your script?
Thanks,
Tom
Thanks
サインインしてコメントを残してください。