Announcement

Collapse
No announcement yet.

Phone Number on CTUS Contact Form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Phone Number on CTUS Contact Form

    I'm looking to add a phone number field to the Shadows Contact Us form. I'm assuming I would have to be touching both the ReadyTheme > contact_form and the CTFM templates that validates / sends the email? Easy enough to do?
    Tony Pavao
    Studio6t6
    Vancouver BC Canada
    [email protected]

    #2
    Hi Tony,

    You are correct. In your ReadyTheme Content Section, add this below the email address input:
    Code:
    <div class="c-form-list__item c-form-list__item--full">
    <label class="c-form-label is-required" for="contactPhone">Your phone number</label>
    <input aria-required="true" class="c-form-input" id="contactPhone" name="contactPhone" required type="text" inputmode="phone" value="&mvte:global:contactPhone;">
    </div>
    Then, on CTFM, update the message section with this:
    Code:
    <mvt:comment>
    <!--
    This will create the store message from user input.
    -->
    </mvt:comment>
    <mvt:assign name="l.mail:message" value="'Message from: ' $ g.contactName $ g.eol $ g.eol $ 'Email Address: ' $ g.contactEmail $ g.eol $ g.eol $ 'Phone: ' $ g.contactPhone $ g.eol $ g.eol $ 'Message:' $ g.eol $ g.contactMessage"/>
    Last edited by Matt Zimmermann; 10-19-20, 08:56 AM.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Awesome! Thank you, Matt.
      Tony Pavao
      Studio6t6
      Vancouver BC Canada
      [email protected]

      Comment

      Working...
      X