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?
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 How can I write a custom input mask? Thanks.
Hello How can I write a custom input mask? Thanks.
Hello, thanks for the good solution for my problem and thanks all for your time and your answers. Best Regards from France. Christine
It'ok for application fields but doesn't work for fields in secondary table
I am not sure I understand your comment. If you create a form for your auxiliary table, then you have the same input mas property available for text fields, just like the application fields.
I created a form for submit of the secondary table and put an input mask for 2 fields : one 'aaaa' and one 'date'. Doesn't work. I don't know why. It's ok for fields in primary tables
This should work in auxiliary tables as well. I just tested in 11.8 and was successful. The documentation does indicate that the "Include jquery plugin" check box needs to be checked in the Javascript properties of the form.
I work with 12.1, perhaps this is the problem
Hello it's ok now. I forgot to declare the submit form in the secondary table. Thanks for your help.