SSN Check Valid Format


I know this question is a lot easier than it seems, but I can't seem to get around it.


This is my current code and I cannot get it to properly check if the SSN number is in a proper format or not. It just says all is false. This is my current code:



```
<script type="text/javascript">
    function checkDgt(){
        var validSSN=/\d{3}-\d{2}-\d{4}/;
        if(validSSN.test(document.getElementById("social").value))
            alert("Social is invalid.");
        else
            alert("Invalid.");
    }

</script>
<form>
    <input type= "text" name="social" id="social">
    <input type= "button" value="Validate" onclick="checkDgt();">

</form>
```

What exactly am I doing wrong?
Your function works, but both the IF and the ELSE return an alert message that says its invalid.  

The first part - the IF - should return in the alert box "Valid SSN"  

I am assuming your input should be like this 123-45-1234


but do you need to tell the user the input is valid? Surely the alert should only be displayed if the input is invalid? So the if should return nothing. imho
hey [@j.kassner](/u/j.kassner),

please see the solution to your question here:

[image]

["signuture is invalid" cdn 1.7.10 js viewer](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/4) [web sdk](/c/web-sdk/13)

hey [@j.amelsberg](/u/j.amelsberg),

it appears you are using your sdk app key and secret to generate the signature. you need to use your jwt key and secret app to ge… Check if any of the values in the cells are null.  

If they are you need to modify your code to check for null conditions before using `ToString()`. Facebook wants to verify your identity, hence you must submit documents.
  
See this link, it will show you how.
  

  
<https://www.facebook.com/help/153265828135764> can you try with other dropdowns? if its working , nothing wrong with your code and something to do with that specific drop down. the code you posted above still has the original img tag with joy.jpg, so it doesn't show what you entered that did not work.
but taking a wild guess, i would point out that javascript is case-sensitive, and so is the challenge checker, so if you accidentally substituted lower case for upper case, or vice-versa, it would not work in the code or pass the challenge. I suppose you could try overriding the encoding in the `HtmlWeb` object.


Try this:



```
var web = new HtmlWeb
{
    AutoDetectEncoding = false,
    OverrideEncoding = myEncoding,
};
var doc = web.Load(myUrl);

```

Note: It appears that the `OverrideEncoding` property was added to HTML agility pack in revision 76610 so it is not available in the current release v1.4 (66017). The next best thing to do would be to read the page manually with the encodings overridden. thanks for getting back to me [@michel1](/u/michel1)! in this case, i recommend you to contact our support team: [how to contact our support team ✉](https://forum.asana.com/t/how-to-contact-our-support-team/87774). unfortunately i don’t have the tools in the forum to check what’s causing the error in your screenshot but our support team should be able to assist here.

when you c… I cant seem to get my mobile phone number verified on Quick books online-can anyone advise how to resolve this?


Sorted, Thank you so much. The Uae version of QBO seemed to fix the issue. 




[View solution in original post](/learn-support/global/manage-your-account/re-i-cant-seem-to-get-my-mobile-phone-number-verified-on-quick/01/664504#M893) so here's what we've found:

so if your form is empty and then you add content to a blank form, it actually obey's the ui:emptyvalue value

if your form is passed data when you view it, e.g you're editing data then the json schema form doesn't really understand how to utilize the ui:emptyvalue value… [@udo](/u/udo),

you should be verifying the token no matter what, which would require decoding it. if you are using our sdk then this is already happening.

the important distinction here is which token. are you talking about the id token or the access token? the permissions may be in the at, but the at is n…