[progress Communities] [progress Openedge Abl] Forum Post: Re: Remove Phone Number Pattern...

  • Thread starter Thread starter skothuri
  • Start date Start date
Status
Not open for further replies.
S

skothuri

Guest
Hi Tom, We observed that there are two issues. Issue - 1: The phone number format is hard coded, which is applicable in latest versions (11.7) as well. I will create an enhancement in our backlog to make the format configurable. However, I'd like to suggest a temporary workaround which can help the customer get going. The phone number can be edited in two scenarios. 1. When adding a new user, 2. Editing the details of existing user. Locate the string var rx = new RegExp(/^\d{3}\-\d{3}\-\d{4}$/); in the files user_add.jsp & user_det.jsp which are located under \oebpm\jboss\webapps\deploy\sbm.war\bpmportal\administration and chnage the regular expression to a format that works for you. Example: If customer doesn't require the validation with hipen(-) characters, you can make it optional with the below regular expression. var rx = new RegExp(/^\d{3}\-?\d{3}\-?\d{4}$/); // Works for both ########## & ###-###-#### or you need to allow just 10 digits without any extra symbols, use var rx = new RegExp(/^\d{10}$/); // Works only for ########## Additionally, you also need to change the validation message where the older format is shown. To do that, locate the file bpmportal.properties (bpmportal_ .properties for locale specific message) under \oebpm\jboss\webapps\deploy\sbm.war\WEB-INF\classes\properties & change the property with the key EnterValidPhoneNoFormat as per your expected format. Restart Portal server to get your changes applied. Issue - 2: The error in console when opened in Chrome has been fixed in the later versions. Please confirm if it works for the customer.

Continue reading...
 
Status
Not open for further replies.
Back
Top