You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am new to using the field interactions and am starting out with a simple one. Trimming trailing spaces from a name field after the field value changes.
I have the code below working however the character count that is displayed on the field doesn't update (so if it removes one trailing space from "John " then the count stays as 5/50. This isn't a major problem but it's a bit annoying and makes me think I'm doing something wrong? (have included screenshot). Is there anyway to have it update the count?
var valueTrimmed = API.getActiveValue().trim()
API.setValue(API.getActiveKey(), valueTrimmed)
Thank you!
Luke
The text was updated successfully, but these errors were encountered:
Hi, I am new to using the field interactions and am starting out with a simple one. Trimming trailing spaces from a name field after the field value changes.
I have the code below working however the character count that is displayed on the field doesn't update (so if it removes one trailing space from "John " then the count stays as 5/50. This isn't a major problem but it's a bit annoying and makes me think I'm doing something wrong? (have included screenshot). Is there anyway to have it update the count?
Thank you!
Luke
The text was updated successfully, but these errors were encountered: