Community

Field with a specified fixed value

Hi.
In the Document Definition Editor, how I can add a new text field in the document structure and assign it a static text (not related to something recognized in the document)?

Thank you very much!
Bye.
0

Comments

2 comments

  • Avatar
    Sushi
    Just add a new field and create a simple script like as follows:

    me.field("fieldname").text = "Put value here
    0
  • Avatar
    GuillaumeB
    More hints/details for a field with a constant value :


    1. In the document editor, create a new text field
    2. in the field properties, go to rule tab
    3. select "rule stored in object" (or something similar, my interface is not in english)
    4. Clic on the button [Add rule..] and select type "Script"
    5. the severity in the first tab has no importance, go to second tab and clic [Add...]
    6. on the new line, uncheck the "read only" property and get the alias name (change it if you want)
    7. in the script section clic [Edit...]
    8. add : this.field("thealiasname").text = "wantedFixedValue"
    9. save and close all windows









    0

Please sign in to leave a comment.