Hello,
I am hoping you can help me once again please.
I have a question that asks for an amount and I have been trying to implement inputMask: 'currency'. I would like to change the prefix and numericDigits values based on the answer to a previous question 'currency'.
I can't seem to be able to change the prefix or number of digits once set. I have tried getting that questionModel and changing the prefix and numericDigits properties. I have tried creating a javascript object that stores a string for the symbol then telling the question in the JSON to look at the object but that doesn't work.
ChatGPT thinks you implement the use of inputMask using inputMask: { mask: "currency", prefix: "£" } so that doesn't know the answer. I have tried saving the required symbol to survey.data but inputMask can't read from the survey data. I have tried re-rendering the question once the prefix has been changed but it doesn't make a difference.
Maybe the answer is that it is impossible but, just in case, is there a way to dynamically update the prefix and numericDigits values for inputMask within SurveyJS or do I need to find an alternative approach to showing the correct currency symbol?
Thanks for all your previous help,
Stuart