google form Match All Except a Specific Word - google-forms

I am trying to ask a form to validate a user input before clicking send, essentially I need the user to enter any 6 digit code except for those a select few codes.
I have searched and searched for the answer but can not find what I am looking for,
I was told to try the below, but unfortunately that does not work, I would be grateful of any help.
[0-9]{6}/(?i*111111|?i*222222)

Related

Recurring Google-/Microsoft-/Typeform or other form that shows answer from previous entries

I would like to set up a survey/form that I can repeatedly send to the field (I'm working in NGO business) with mainly open answer questions. The form should be done in a way that it always already shows the answers from when the form was filled the previous time. Anyone knows sth like this?
ODK and KoBoToolbox support that feature. It is not yet documented on XLSForm.org, but you can read more about it here: https://docs.getodk.org/form-logic/#values-from-the-last-saved-record

asp.net multiple user calculation error

Apologies if this has been asked/solved before. I've done a fair bit of searching but can't seem to find a direct answer to my problem.
I'm still very new to asp/vb coding.
I've created a complex calculator in asp.net using vb.net.
The user fills out a few text boxes with information then clicks the calculate button. The program then accesses an sql 2014 server to collect more information based on information the user has entered, then uses the information to run a few very complex calculations (I don't completely understand the calculations behind it).
It all works fine and is able to give the correct answer, the problem I've found is if there is more than one user accessing the site and they happen to click the calculate button within the same time, whoever clicked the calculate button first gets an error whilst the person who clicked second gets an answer.
I'm not sure if this is to do with how it accesses the sql database for information or if the information is somehow being overridden.
I was hoping this would be a common problem, but can't seem to find anything on it, at least I may not be asking the right question when searching.
Unfortunately for security reasons I'm not able to post any code for it (I'll see if I can get permission) but am hoping that someone has come across something similar and knows a work around. Maybe to have the site wait until the first round of calculations is complete before initiating the second round?
Thanks for your help in advance!
Please make sure that you should not use any shared variable in calculation because shared variables are common for all users. Also check for application variables.
I can understand, but if those public variable's value changed at one place, then after everywhere that variable's value will be new even if you are in middle of some processing.

Variable number of fields in Google Form?

Is there a simple way to make a Google Form have a variable number of a fields based on numerical input from a previous field (e.g. asking how many people will be registered and then providing that number of name fields)?
I've tried Googling and looking on Stack Overflow, but couldn't find anything. I'm not really familiar with JavaScript, although I know a small amount of PHP.
Thanks!

What are the key-value pairs on a form which finally get POST'ed?

I have looked in stackoverflow and googled for this question but havent found anything relevant. Given a web-page with a form, which is possibly implemented through loads of javascript/.NET etc... I am trying to get the list of key-value pairs that I need to pass to it so that my program (lets say, using curl) can perform an HTTP POST. Any pointers/tips will be appreciated. Thanks.
Easiest thing to do is to install firebug in firefox and use the NET tab to observe what exactly is posted with your form.
You can look for every input in the form : the key is the name of the input, and the value is its... value. :) Checkboxes send a value of 1 when checked, otherwise 0, <select>s send the value of the chosen option, etc.
A fastest way is to use Firebug. Send the data with Firebug on the Network tab and just look at your request in it.

How to check if user submit Arabic words from a form?

Is there any reliable way to check if user has entered Arabic words into a form and tries to submit it? Can Javascript handle this? Or, only server script like .NET can do this?
I'm thinking that if possible the script should directly prevent the user from inputting Arabic words into the form and show an alert pop up.
Please share any examples if you have any idea how to do it.
Thanks
In Unicode, Arabic characters fall in a specific range. You can use a regular expression in JavaScript to check if a string contains any characters in that range. (You could also do that in c#.) Here's a really helpful tool that will let you select the ranges you want to search for and create a JS-compatible regex for that.
For example, [\u0600-\u06FF\u0750-\u077F] will match any characters that fall in the Unicode ranges for "Arabic" and/or "Arabic Supplement".
You could use the Google Ajax Language API to detect this. Here is an example.

Resources