Tinderbox Forum

Change user attribute from string to number

I’ve created a user attribute as a string. I want to change it to number. How?

Thanks.

BH

You can change type for user attributes in the Document Inspector > User panel. Just select the attribute, then change the option in “Type”. The change is immediate and no “are you sure” or confirmation messages appear.

Be aware, that if you have string characters in existing instances of that attribute in notes, the result for some queries or actions may be indeterminate. You might want to consider leaving the string attribute along, create a new number attribute, then use action code to load the new number attribute with cases where the old string attribute contained numbers.

2 Likes

Thanks. I’m still cracking the basics.

1 Like