Hi,
is it possible in Dynamics 365 CRM to define the Input Mask of a Text-Field depends on another Field in the Form?
My Scenario is:
- In the Account Form, I have a custom Field for Country and a Text-Field.
- When the User choose a country then the Text-Field should have an Input-Mask
- for each country, the Input Mask is different.
best regards
Ziad
Hello,
You can achieve this also by implementing a javascript. If you need to save the data with the actual mask, my recommendation is create a text fields and then modify it values accordingly using javascript:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/getvalue --->to obtain the value for the fields, you can use this one to get the value from the field that will determine what mask use as well.
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/setvalue --->to set the actual value.
Yo may need this one as well: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/fireonchange
Hope this information helps to achieve your goal.
Hi Marco,
thanks for your response. It works fine. I am searching to find a solution for this Format: 6 digits (1 Sign (+/-) or the Character A) 3 digits e.g.: 123456A123 or 123456+123.
best regards
Ziad
Hi Ziad Eltoufeili,
Any news? Did you try mi proposed solution ?
Hi,
If i were you, i would:
Also refer to this to make mask control validation:
https://www.inogic.com/blog/2017/02/controls-in-dynamics-365-for-mobile-app-input-mask/
Hope it helps,
Marco
If you found the answer helpful for you or other readers, please mark as Verified.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156