Question:
How to put a "0.00" value to the Money type field if it is empty?
Answer:
It is possible with the simple script that will check if the field is null and will be replaced with a 0.00 value. Here is the sample of the script:
if (Context.GetField("Your_Field").Value == null) {
Context.GetField("Your_Field").Value = new AmountOfMoney(0.00);
}
This solution will work only with the field type "Money":
Comments
0 comments
Please sign in to leave a comment.