Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7006027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:25:31+00:00 2026-05-27T21:25:31+00:00

I am not even sure if this is even possible or how easy it

  • 0

I am not even sure if this is even possible or how easy it is, but what I am trying to work out is how to, if it is possible, to use jquery or javascript to insert an alias for a form field / curly brackets where the cursor currently is selected on the page.

Let me try and explain it a bit better…….

So I go to the email template form, on the right of the form I have 3 buttons,

NAME , REP , DATE
Name = {leadname}
Business Name = {businessname}
Date = {datesent}

These are all form fields being posted into the $form->data array when it loads.

I start writing out my template so…….Dear {leadname} etc etc
when the template is sent, it loads the clients name etc into the curly brackets and sends it in an email.

What I am trying to do is make this so that someone doesnt write leadname for the persons name but presses the button to the right of the form marked ‘Name’ , this then inserts [Name] or maybe Name in bold into the form, but this is actually an alias of {leadname} , so im not sure if I have to change my language file too to get this to work ?, im also not sure how to actually insert these fields into my template form field.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:25:32+00:00Added an answer on May 27, 2026 at 9:25 pm

    Is this kind of what you’re talking about doing?
    http://alexking.org/projects/js-quicktags/demo/index.html

    If so, I think this guys implementation of JavaScript quick tags will get you going:
    http://alexking.org/blog/2004/06/03/js-quicktags-under-lgpl/

    Otherwise, this post may help you out: Inserting a text where cursor is using Javascript/jquery

    –

    Edit

    Here’s the code you need, using Alex King’s plugin to create a button that doesn’t get closed:

    edButtons.push(
        new edButton(
            'leader_name'
            ,'LEADER'
            ,'{leadname}'
            ,-1
            ,-1
        )
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello! I'm not even sure if this is possible, but hopefully it is in
I'm not sure if this is even possible but here goes: Currently I have
I'm not sure if this is even possible, but is there a way to
I'm not even sure what this is called? But I'm trying to learn what
I'm not even sure if this is quite possible to do with MySQL, but
I'm not even sure if this is possible, but I thought I would check
I'm not even sure if this is possible, but I need to send POST
First of all I'm not sure this is even possible, however I need to
I'm not even sure about how to title this qn. But, hope there is
I'm not even sure if its possible, but I'd like to change the value

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.