Skip to content
Snippets Groups Projects
Commit 6b63812f authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Phone validation switched to null.

parent c1855203
Branches
Tags
No related merge requests found
......@@ -7,7 +7,6 @@
. '<li>' . $this->recordLink()->getBreadcrumb($this->driver) . '<span class="divider">&gt;</span> </li>'
. '<li class="active">' . $this->transEsc('Text this') . '</li>';
$phone_pattern = '[\d-()\. ]*'; // Default that prevents invalid characters from submitting
if ($this->validation == 'US') {
$phone_pattern = '^(\([2-9]\d{2}\)|[2-9]\d{2})[ -\.]?[2-9]\d{2}[-\.]?\d{4}$';
}
......@@ -19,7 +18,7 @@
<div class="control-group">
<label class="control-label" for="sms_to"><?=$this->transEsc('Number')?>:</label>
<div class="controls">
<input id="sms_to" type="tel" pattern="<?=$phone_pattern ?>" name="to" placeholder="<?=$this->transEsc('sms_phone_number')?>"/>
<input id="sms_to" type="tel"<? if(isset($phone_pattern)): ?> pattern="<?=$phone_pattern ?>"<? endif ?> name="to" placeholder="<?=$this->transEsc('sms_phone_number')?>"/>
</div>
</div>
<? if (is_array($this->carriers) && count($this->carriers) > 1): ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment