Predefined Value
-
Hello,
I have the following problem. I want to display the result of a calculation in a number field.If I set the field name under Predefined Value (fieldname1), it does not work. Presumably because it is the result of a calculation. So I tried this: getField(2).setVal(fieldname1|r);. This works perfectly. However, the user cannot overwrite this number in the frontend.
Example: The result 5 is automatically entered in the number field. In the frontend, however, the user wants to change this number to 7. This is not possible. It always jumps back to 5, so it cannot be overwritten. Basically, the number field is then useless for me. I could display the result straight away.
So, how can I display the value of a calculation in the Predefined Value area AND make the value overwritable in the frontend?
Thank you for your help.
- You must be logged in to reply to this topic.