Error 403 Forbidden when typing an If conditional when making an Edit Input Java code
I'm trying to type the next code to make a small test in regards to formatting a string as the user types it:
if(theValue.length() == 3){
theValue += ".";
}
I would expect this to work without any issue, but when I go ahead and save it, and then click on "Refresh", I get a 403 Forbidden error, which forces me to close the tab, just to find the previous code when I reopen it, so the code isn't even saving to begin with apparently.
I don't understand if there's something I'm missing, but I don't get why a simple If conditional would cause an error.
***Edited by Moderator Marije to add Capability tags***