CRM 2016 + Currency is required if a value exists RRS feed

  • Question

  • Hi All,

    I have javascript on my form wherein onchange of a field, currency is set.

    For eg i have a field named 'Field1', on change of a value in 'Field1', currency is set and an another money field is set based on the currency selected.

    So the scenario is, when the value from Field1 is removed, currency is set to blank,after then if a value is selected in Field1, eventhough the currency is set it throws an error "Currency is required if a value exists".

    Kindly suggest.

    Monday, January 30, 2017 10:26 AM

All replies

  • Few things to check.

    1. JavaScript depreciation, is any of your code referring to non XRM references?
    2. Is the currency field present on the form?
    3. If currency is set, is that in the global settings or local?
    4. Is your Javascript settings any currency fields as 0.00?
    5. Why do you need to change currency so often on a change?

    Personally I think you are overcomplicating the form. What is the value to be changed in Field1? Can you use option set or tick boxes instead? Easier to fire a plugin or business rule that will change the currency for you.  

    Thursday, February 9, 2017 12:48 PM