Updating Transaction Currency On Form Doesn't Update Custom Money Currency Symbol

浪子不回头ぞ 提交于 2019-12-12 02:56:52

问题


I'm creating an empty shell of a lead on a custom web page, then redirecting the user to the newly created lead. The TransactionCurrencyId on the lead is empty on load, and in the OnLoad event, JS is setting the TransactionCurrencyId, and then populating the custom Money field. Upon setting the money field, the following alert is being thrown:

A Currency is required if a value exists in a money field. Select a currency and try again.

Manually clearing the TransactionCurrencyId, and then re-selecting the TransactionCurrency allows the user to manually populate the value.

Shouldn't the Transaction Currency be set by default, and how do I set the TransactionCurrencyId in order to set the Custom Money Currency Symbol?


回答1:


I was able to get around this be calling this on the custom Money attribute in the onLoad, before actually setting the value:

att.$2_2.setCurrencySymbol("$")

Of course this is unsupported and not an ideal solution...



来源:https://stackoverflow.com/questions/35612299/updating-transaction-currency-on-form-doesnt-update-custom-money-currency-symbo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!