Jump to content

Nameserver field validation problem


Logman

Recommended Posts

 On our VPS order form I'm getting this error on the first step:

Quote

Please correct the following errors before continuing:

The nameserver prefix is invalid.

This is when a client inputs:

ns1.domain.com

ns2.domain.com

If they simply enter ns1 and ns2 the order proceeds just fine. In the past we've been able to enter ns1.domain.com and ns2.domain.com and that seems pretty natural. This is a problem that needs a solution. For now I'm adding text in configureproduct.tpl.

Edited by WHMCS ChrisD
Corrected issue with quote
Link to comment
Share on other sites

14 minutes ago, Logman said:

We use the Control Theme and use one of their order forms. It does happen with Standard Cart though. I don't have Six installed, must have removed it in a clean up. Can it be downloaded anywhere?

Hey @Logman

downloads.whmcs.com is the place to get the full release files from if you are using a version older than v7.3.1 then support can provide them

Link to comment
Share on other sites

  • 4 years later...

Edit the file at /templates/orderforms/standard_cart/configureproduct.tpl

 

Find the line:

<input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="{$server.ns1prefix}" placeholder="ns1">

Replace the line with:

<input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1">

 

Find the line:

<input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="{$server.ns2prefix}" placeholder="ns2">

Replace the line with:

<input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="ns2">

 

 

nameserver-validation.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated