Hello, i'm working in FC11, i'm configuring a script rule that has to acomplish the following:
There are 3 fields in the Document Definition: Id, First Name, Last Name
The idea is to consult in BD by the Id Number and if the record exists then 'First Name' and 'Last Name' fields are filled in the form with the respective values.
If the record doesn't exist then a person (the operator) has to fill the fields.
In both cases the operator has to be able to edit the value
The conexion, the query it's done and works fine, also 'First Name' and 'Last Name' fields are filled.
I have a problem in the last part because the fields can not be edited after the rule, the changes are automatic undone.
¿How can i configure each field (First Name, Last Name) to allow editing after the rule validation?
Thank you
Comments
3 comments
Hi Karen,
I am usually using workaround for cases like this, so the script will be executed once. You can add one additional hidden Text field with default value 0. Apply the rule only if this condition is true: value of Text field is equal to 0. After the script is executed, change the value of Text field to 1.
I am always using Checkmark, so you can use any type of field you want.
Best regards,
Vladimir
Hi Vladimir, thank you very much for your answer it was very helpful
Hi Karen,
You're most welcome. Glad it helped.
Best regards,
Vladimir
Please sign in to leave a comment.