How to prevent users from entering '+' or '0' in front of country code in the phone number field?

Requirement:
How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
Solution:
Using a simple regular expression, you can validate the entered phone number during the guest registration. 
The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
It also performs the below validations.
only numbers are allowed.
first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
numbers from 0 to 9 are allowed from the second digit.
also validates phone number length, the length of the phone number should be 9 to 14.
Configuration:
To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
Note:  Edit the Validation Error as per your requirement.
Verification
Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
Please find below the sample outputs for your reference.
Result when phone number starts with '+' or '0'.
Successful registration.

Is this a Mac Preview issue?

Similar Messages

  • How to prevent user from entering zero hours in Timecard

    We have a need to prevent user to enter/submit zero hours in timecard. The case right now is user will be able to enter:
    Hours Type M T W T F
    Vacation 0 8 0 0 0'
    and when we run BEE transfer process it created absences with zero hour duration for Monday, Wednesday, Thursday and Friday.
    We try to prevent absences to be created with zero hours or user to be able to enter zero hours in timecard.
    Please help.
    Thanks

    Hi
    you can refer following example
    ========= formula ===============
    Initialise Variables which can be null
    default for db_pre_period_start is ' '
    default for db_pre_period_end is ' '
    default for db_post_period_start is ' '
    default for db_post_period_end is ' '
    default for db_ref_period_start is ' '
    default for db_ref_period_end is ' '
    READ IN INPUT VARIABLES
    INPUTS ARE resource_id (number)
    , submission_date (text)
    , period (number)
    , period_maximum (number)
    , reference_period (number)
    , db_pre_period_start (text)
    , db_pre_period_end (text)
    , db_post_period_start (text)
    , db_post_period_end (text)
    , db_ref_period_start (text)
    , db_ref_period_end (text)
    , duration_in_days (number)
    , timecard_hrs (number)
    Processing
    l_return = otl_24_hours_check()
    IF l_return > 0 THEN
         ( rule_status = 'E'
         message1 = 'DAILY_MAX_LIMIT' )
    RETURN VARIABLE
    RETURN rule_status, message1
    ============= database package ==============
    FUNCTION otl_24_hours_check
    RETURN NUMBER IS
    j NUMBER := 0;
    e_count NUMBER := 0;
    tc_blocks Hxc_Self_Service_Time_Deposit.timecard_info;
    BEGIN
    tc_blocks := Hxc_Self_Service_Time_Deposit.get_building_blocks;
    j := tc_blocks.FIRST;
    WHILE j IS NOT NULL
    LOOP
    BEGIN
    IF tc_blocks(j).scope = 'DETAIL' THEN
    IF to_number(tc_blocks(j).measure) > 24 then
    e_count := e_count + 1;
    END IF;
    END IF;
    j := tc_blocks.NEXT(j);
    END;
    END LOOP;
    RETURN e_count;
    END;
    ================================
    above formula checks if a person entered more than 24 hours in a day

  • How to prevent users from creating new folders in share folder directory?

    Hello guys
    I'd like to know How to prevent users from creating new folders in share folder directory but still keep their power of creating new folders in their personal 'my folder'?
    I tried changing the 'manage privilage ---- create folder' to deny certain user accounts, but by doing so, it also stops the user from creating new folders in their 'my folder', which is not good..
    I also tried going into these share folders and tried different access types such as 'change/delete', 'read', 'traverse folder' etc, but none of it work ideally. The 'change/delete' access still allows them to create new folders, 'read' access prevents creating new folders but also take away their power of saving reports..
    Any thoughts on how to take away their ability to ONLY create new folders in share folder areas without affecting their other privileges?
    Please advise
    Thank you

    Easy, on the shared folders root folder only give them 'read' or 'traverse folder' but on the the folder inside the shared folders root folder give them 'change/delete'. That means they can change anything inside those folders but not create any folders at the shared folders root level.

  • How to prevent user from "normal" navigation?

    Hi everyone,
    I have a PDF with a lot of pages, which are connect through Links (It's an export from MS Visio).
    I now want all the users to keep navigating through the links and prevent accidental navigation through the "normal" way (Arrow-Keys, Mouse-Scroll, etcs...) as much as possible.
    For this I have three ideas:
    "Force" Fullscreenmode: Here I can prevent from advancing in pages by clickAdvances=false. However I think it's not possible to prevent page changes by mouse-scroll or key-press.
    Using Layers: I have read, that it is possible to show/hide layers on demand with js. But I don't know how this can be done. And I would have to change the links to js-function showing the needed layer...
    Loading/Deleting Pages: I could load and delete Pages on demand. This is probably slow and i would need two pdf files.
    Does anyone knows something that could help me to solve this problem?
    Cheers, Holger.

    1. Not possible (except if the additional method described below is used).
    2. This is possible, but it requires setting up the layers and then a system of buttons and scripts to show/hide them.
    3. Also possible, but much more complicated than using layers.
    Another option is to use a script to prevent the user from entering a page, unless its done via a button.
    However, all of these methods have their disadvantages and can be very annoying for the users. You should really think if you want to implement this feature...

  • How to prevent users from saving and emailing intranet documents externally

    Someone in our company needs to upload a pdf to our sharepoint intranet site for internal-only use. How can I prevent users from downloading it and emailing it externally?
    I mean, a user could screenshot it I guess, but I need to give management a due diligence answer.

    You would need to look into a reverse proxy/firewall that had the ability to block access based on content. This isn't something you can accomplish out of the box with SharePoint (even with AD RMS).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to prevent user from creating jobs

    Hi,
    we need to prevent user from creating jobs on a dev enviorement. It's a 10.2.0.4 database standard on linux 64bits.
    Their schema has only connect and resource roles. Is there a way to prevent them from creating jobs? In 11g it's the CREATE JOB permission, but in 10g i'm not sure how can i do this.
    Thanks for any ideas!

    On 10g it's probably the CREATE JOB as well.
    http://www.oracle.com/pls/db102/homepage
    Alternatively you could:
    alter system set job_queue_processes=0
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams089.htm#REFRN10077

  • How to prevent users from running PRC: Transaction Import from WebADI form?

    Hi,
    We are 12.1.3 and trying to create a workflow to approve Project transactions coming through web ADI before they become effective. To this end, we want to prevent users from running the PRC: Transaction Import from the Web ADI.
    I know that if the checkbox Automatically run transaction import is not checked, the program does not run. But we want to hide this checkbox and not allow the possibility that the program could get triggered.
    To this end, we updated the BNE_INTEGRATORS_B with source='C'. This allows you to edit the integrator from Desktop Integration Manager.
    UPDATE BNE_INTEGRATORS_B SET SOURCE ='C' WHERE  INTEGRATOR_CODE ='PAXTTRXB'
    In the 4th step, where the value for Uploader Parameters is set, we have set boolean value to No. These are the fields on the page:
    Parameter Name: bne:import
    Display Name: Start Transaction Upload
    Data Type: Boolean
    Category: Field
    Default Value: Boolean Flag: No
    Description: start Transaction Import Concurrent Request
    Display Options: Displayed: Unchecked
    Display Options: Enabled: Checked
    Display Options: Required: Checked
    Prompt Left: Automatically submit Transaction import
    Display Type: Check Box
    Maximun Size: 100
    Display Size:100
    Now the checkbox is not appearing for the user to check it, But the program is automatically running when you hit Upload in the WebADI. 

    Hi ,
    Try removing the PRC: Transaction Import Program from the request group for the responsibility used by customers to submit the WebADI and then check if the program launches.
    Regards,
    Raghavan

  • How to avoid user from entering new price condition in return order

    Dear Expert
    We are facing a scenario where we make return order; the Price is copied from the invoice. And it is working perfectly. The system does not allow us to change the price.
    The issue we are facing here is that user can input new condition like discount /premium and change the net value for the return order pricing, and this will reflect in the credit note for returns.
    Is there a way to restrict the user from entering any pricing condition in the header or item conditions tab.
    although we cannot change the original price coming from invoice referenced for return order, but the user can input new price conditions as below. This must not be allowed.
    The price must come according to the Qty being referenced.
    While making the credit for returns, the user has a chance of further making changes to the net value by adding new conditions. Hence this must also be restricted for any changes.
    Thanks
    Edited by: Lakshmipathi on Jan 31, 2012 6:55 PM
    Thread Locked - Reason Cross Post

    okie .... i will tell briefly what is the problem ....
    Take a scenario wherein a user has logged into my application and he is performing a task which will put his user id and his employee id into the session. Then he opens another window by using either ctrl+n or through files->new window.
    So now a new browser will open but the session will be same ..... in this newly opened browser, user performs some operation which will remove the user id and employee id from the session .... Now if he again comes back to the first window and tries to do some operation, then a null pointer exception will be thrown saying that the employee id is null .... because he has deleted that in the newly created browser ..... to avoid this situation what can we do ???? can you please help me in this regard ??? you got my problem right !!!

  • CE10 how to prevent user from view hostrical instance

    hi,
    We are currently using CE10. One of our user used search functionality in enterprise to search for reports start with 'employee' and it came  back with all the crystal reports on the server that  started with employees, even the one the user doesn't have access to.  My greatest concern about this is that users can view historical instance and it is sensitive data.  Does anybody know whether or not this is a bug in CE10?  Is there a patch/fix for this?  Is there any configuration change that I can make to
    prevent users from being able search all the reports on the server rather just their own reports?  Any help is greatly appreciated.
    Regards,
    Susan

    hi,
    I have an EVERYONE group with limited access(view object), and EVERYONE group is added to each folder with NO ACCESS.  If I revoke view object(explicitly denied) privilege from EVERYONE group, do I still need to remove EVERYONE group from each folder?  When I'm at folder level in CMC, I see EVERYONE GROUP added, but when I tried to remove the EVERYONE GROUP, the EVERYONE group is not an option for removal.  What am I missing?
    Thanks for your help!
    Regards,
    Susan Johnson

  • How to prevent user from deactivating the adobe software

    I am working in a training center, We've got 20 machines here installed with Adobe CS3 production premium (not using network license). The problem now i foresee is the software deactivate problem, i found user can deactivate the adobe software even they dont have XP administrator rights.
    And what i know about activation of adobe software is that there is a limit of activation count of 30 tries and after that i have to call the adobe technical support for help.
    Is there any way that i can prevent user from deactivating the software in terms of registry modification or what other kinds of method.
    Thanks
    Ivan

    If you have 20 machines I assume you have a volume license, which does not require de/activation anyway.
    If you have 20 separate licences... well, the only thing I can think of is to block the Adobe Activation domains of adobe.com through the firewall of your network. You should probably contact Adobe directly for more specific info.

  • How to prevent users from creating transactional problems?

    Dear Sirs...
    Using JDeveloper 10.1.2 and ADF UIX technology. If i created a web application that contains many pages. Assume the application contains pages A,B,C,D.
    The end user should access the pages A then B then C then D to get the transaction executed and commited correctly.
    the problem is:
    1- if a user navigates from A to B to C then he press the Back button to A then he commits the transaction, the data would be stored in correctly.
    2- if page C requires some preparations in page B (initalization of session variables) and the user enters page A then he changes the URL to C, then this would cause inproper execution of application and so the data would be stored incorrectly.
    so how can i prevent the user from pressing the back button of the browser (which i do not think is possible) or how can i prevent him from making any errors by inproper page navigation?
    thanks for any help in advance and best regards

    I really don't know if this is the correct way of doing it, but we prevent navigation directly to any page within our application if the HTTP Referer header is null. If it's null, we redirect to a page that says the user should use the navigation buttons provided and not enter the page via bookmarks, history, or direct navigation via a typed in URL.

  • Prevent User From Entering Characters In A TextField

    Does anyone know how to prevent certain kinds of letters or symbols from being entered into a textfield? Something that prevents the user from typing a minus sign or the letter Q.

    You can also use KeyListener. You can also search the forum as this question has been asked numerous times.

  • How to prevent user to enter data in "Date/Time Field"?

    Hi folks,
         Back after long time to the forums, where I get answers which are helpful in making me good at utilizing designer.
         I am trying to validate the "Date/Time Field" using JavaScript but couldn't get a proper RegEx expression for various invalid user input formats. If anyone can help me out in finding a proper script that would Great.
         My script grown bigger and bigger to accepting invalid dates, but felt like hardcoding. So, instead I decided why can't we prevent a user to enter data into "Date/Time Field" and use only calendar dropdown. Is there is a way to do this?
    find my sample testing docment
    https://acrobat.com/#d=mYXkrhO2txuEesCfmvxNXg
    Thanks in Advance,
    Rajesh

    Hi Rajesh,
    I don't think there is a way of stopping the user from using the keyboard to enter a date.  You can use the following script in the change event to stop them typing a date but they will still be able to paste a date in.
    if (xfa.event.change.length === 1)
    xfa.event.change = "";
    This code works because if the date is selected from the calendar dropdown then the date xfa.event.change value will be the whole date and therefore longer than one character.
    I couldn't access your sample but if you were to set an display picture for the date field to something other than date{YYYY-MM-DD} then a valid date will have a formattedValue that is different than the rawValue.
    Dave

  • How to prevent user from selecting a specific printer?

    Hi there
    I have a MailFolder which has an ArrayList of Email objects inside it. Each MailFolder has an attribute called folderFile which is a reference to a folder in the operating system. Each Email has an attribute called parentFile which is a reference to a file in the operating system.
    Now, I am trying to put printing into my application.
    When I print using a normal printer like my HP Deskjet or the likes - an actual physical printer - everything works fine. But when I print using the Microsoft Office Document Image Writer, things go wierd. The following things happen;
    I call myMailFolder.getFolderFile().exists() and this = false. But if I (in the debugger) make a new file pointing to the same path, .exists() = true. Also if I look in the OS, the file exists. So somehow in the job.print() this Document Image writer seems to be messing up this file reference. The same thing happens to the myEmail.getParentFile().
    So to fix this, can anyone tell me how to prevent the user from selecting this printer, or can anyone tell me why this is happening only with the Document Image Writer?
    Many thanks!
    Rachel

    I have similar problem with our printing program. I am printing Java Tables, zoom in every column in a landscape page accross multiple pages.
    There are two fatal problems:
    1. On Dell Latitude laptop, the HP5100 printer didn't work; I have to change the code to draw the table header with 2D graphics.
    2. Crash when printing on MS document image writer, but on some computers
    it works perfectly.
    Any one have a good solution/same result for topic 2?
    Thanks,

  • How to prevent user from changing a field on a Form.

    I have a form and a report on the same page. The form is used to set criteria for the report. So after the criteria is entered on the form a button is clicked, which passes the criteria to the report. The form also displays some additional data based on the criteria, i.e. I do a query on the form.
    The problem I'm having is preventing the user from changing the additional data which is displayed. I tried all the wizzard options; i.e. not updatable, not insertable etc. but the user can still change the data.
    The only options seems to be writting some Java code for one of the triggers, but I haven't written any Java before.
    So I was wondering if anyone has a non-Java solution for this problem or an example of a Java program I could use to solve the problem.
    Thanks for any help
    Larry

    Hi,
    Suppose you want Empno, Sal fields of Employee table as Query only and all other fields user updateable then
    uncheck all the three check boxes
    Mandatory , Updatable , Insertable under validation options for those fields.
    When you run the form, these fields appear as text items in query mode and will appear labels once the querying done.
    Hope it works
    Madhav

Maybe you are looking for

  • Disaster Recovery in Windows 2003/Cluster, SQL 2000 and R3

    Hi, Can someone share experience/knowledge of disaster recovery scenarios in MSCS/SQL Server/SAP. One of our customer has R3/SQL Server2000/Win 2003 (Cluster). We would like to evaluate best possible options for the Disaster Recovery which are suppor

  • How can i delete itunes account

    how can i delete itunes account

  • RFC2SOAP error : connection to partner 'loopback:0' broken / CPIC-CALL:

    Hi all,    現在有一個RFC2SOAP的Scenario,在PI7.1的PRD里面,以前一直都OK,昨天下午開始報錯,錯誤信息如下: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Request Message Mapping --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.x

  • Officejet 6500 All in one Cannot print to Fax on Mx OSX Maverics

    Im on a new Mac running OSX Maverics.  I'm new to mac.  On my old windows computer, I could print to fax with this same printer.  I would choose the OcciceJet 6500 Fax as my printer and fax any document from my screen.  Now on the Mac I cannot do thi

  • Removing Email authorization from MS Access Marco

    I have a MS Access macro that is emailing a report to selected users and I cannot get the macro to answer pop up window from MS Outlook that warns that I am attempting to send the email and asks me answer with ( "Allow" , "Deny, or "help") The help i