I work with appscript in SBM 12.1
I must check, in appscript, in a field contains only alphanumeric characters and I didn't find a funtion. Some wrote a funtion to do that?
Thanks for your help.
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
I work with appscript in SBM 12.1
I must check, in appscript, in a field contains only alphanumeric characters and I didn't find a funtion. Some wrote a funtion to do that?
Thanks for your help.
I think they are trying to check the value of a text field, rather than a file.... Christine, there are not any built-in SBM AppScript functions for this type of check. However, AppScript is based on VBScript 4.0. So, I would suggest googling for an vmscript function that does this check. I would guess that you could find some good example out there.
Arg! Mis-read "Field" as "File". Rented brain.
Christine: Is this on a Transition form? It would be relatively easy with JavaScript to strip any character in a Text field that isn't in the range of decimal 32 (0x20; ASCII SPACE character " ") to decimal 126 (0x7E; ASCII TILDE "~").
The JavaScript could also confirm that a Text field only contains Alphanumeric chars without modifying the field. What do you want to do with the result of that evaluation?
Hello, thanks for your answers. This is a script after a transition. If the field is not an alphanumeric field, I stop the transition and the user must change the field value. It's not javascript or VBscript, it's teamscript. It's because it's difficult for me to find information in the web.
I never used JavaScript in SBM. Can you help me to write this javascript. I just want to check this field and If there is a bad character, ask the user to change.
Hello, Thanks for this idea but if I write --- in the title field, it's ok for the system and I just want alphanumeric characters. I switch the then & else statements and enter "---0" in the title field, there are no errors. If there is one alphanumeric character, the title is ok. I think I can't use this action to control the field
Hello How can I write a custom input mask? Thanks.