Skip to Main Content
Ideas Portal
Status New Idea
Workspace Pressero
Created by Guest
Created on Sep 13, 2019

Edit Product Name on Ordering - NAME YOUR JOB

Ability to Remove the word "OPTIONAL" next to NAME YOUR JOB and the option to make this field mandatory.   

  • Attach files
  • Jim Riddles
    Reply
    |
    Mar 30, 2021

    I forgot about removing the word "OPTIONAL". Add the following line immediately below the line beginning with $(function() {:

    $('h4.renameItemHeading.pricingHeading').text('NAME YOUR JOB');

    Feel free to change the text "NAME YOUR JOB" to whatever you want to appear.

  • Jim Riddles
    Reply
    |
    Mar 30, 2021

    Cynthia, I just saw your comment today. I don't know why I didn't receive an email notification. The code that I am using is dependent on the skin selected, although it should be easy to modify. If it doesn't work out-of-the-box, then you can let me know and I'll be happy to provide further assistance. I will need to know the skin you are using for your site, though.

    The code is based on jQuery being available on your site, as well. If you are using any of the responsive skins, it should already be available. What the code does is to find the input fields with an ID of txtCustomName and set the required property to true. You need to put this in the site's Settings -> SEO/HTML -> HTML content for top of <body> section:

    </script>
    $(function() {
    $('input#txtCustomName').prop('required',true);
    });
    </script>

  • Cynthia Emblem
    Reply
    |
    Jul 11, 2020

    Hi Jim, We would be interested in your java script, can you please send to me?

  • Jim Riddles
    Reply
    |
    Sep 20, 2019

    When we encounter this need for a customer, we place custom JavaScript in the product description to execute a function defined in the Site Settings -> SEO / HTML -> HTML content for top of <body> section.

    It does get the job done, but it is a bit of a hassle.

    If you would like the JavaScript to use I will be happy to provide it.