Forum Replies Created

Viewing 15 posts - 106 through 120 (of 147 total)
  • Author
    Posts
  • in reply to: Error occurred – refresh page #25604
    katw
    Participant

    Hi Andrew,

    I started seeing this cryptic error myself when my form had custom code in functions.php (or as custom plugin).

    Have you made sure any custom code was carried across from DEV to LIVE?

    You need to think of embedded QuForm code custom JS/CSS as well as any files in WP install you might have enhanced eg functions.php

    in reply to: Strange > Settings reset themselves #25599
    katw
    Participant

    Hi Ally,

    Appreciate your time.

    1.

    Yes I am the only master and commander 😉

    But you may be right it could be operator miss-error having two windows open. But this would not influence the date issue in entries list view.

    =================
    2.

    a. RE: Version

    Yes using 2.2.0.

    I’m happy the Date stamp has returned to the Entries List View.

    Why it went and why it’s back I don’t know. I hadn’t fiddled with any date setting until after the issue surfaced.

    b. RE: Global setting not applicable to entries list view.

    Ohhh. Must admit my expectation was a global setting was global throughout including Entries List view.

    Thanks for proposing a fix in next edition.

    c. RE:Check field elements

    I do not have a date or time field on my form, using your timestamp {date} {time}

    d. RE: Check Form Language and Locale

    The form has a default locale and RTL support is global setting.

    e. RE: Global Locale and Regional settings

    The Quform Global Settings for:

    • Locale is: ENGLISH (Australia)
    • RTL is: autodetect
    • Date format JS is: dd-MMM-yyyy
    • Time format JS is: hh:mm:sstt
    • Date format PHP is: D,d M Y
    • Time format PHP is: h:i:s A

    =================
    3.

    You’re kidding… looked and looked and didn’t see :-0

    I can’t add my radio button field ‘Status” or my checkbox field “contact by”.

    When I drag and drop it won’t stick in “active” fields. Seems like checkbox and radio fields can’t be used… this is an issue for me.

    Can you write a FAQ on using the labels and starred features… not sure how to use.

    =================
    4.

    You might be onto the issue, I guessed the same. Will explore further.

    • This reply was modified 6 years, 11 months ago by katw.
    • This reply was modified 6 years, 11 months ago by katw.
    in reply to: Calculations with range slider #25549
    katw
    Participant

    Good work @blackbeard

    Makes a difference seeing the rest of your code 🙂

    Remove the trailing commas from:

    1. suffix: ‘ EUR’,
    2. suffix: ‘ mėn.’,

    That was my error in the sample I gave you.

    The last parameter item in the inner array doesn’t need a comma.

    Is it working well or still need help?

    katw
    Participant

    @Diego thanks for the tips and leads.

    Will be very helpful, but wouldn’t a public GitHub vocabulary list become less than effective when SPAMMERs read the words we are blacklisting. Useful to try nonetheless.

    Thanks again.

    in reply to: Strange > Settings reset themselves #25545
    katw
    Participant

    I have continued to experiment with the date and time (PHP) setting in QuForm.

    ‘Clearing Quform cache’ made a change to Entries List view. Still doesn’t match my new global setting of [D, d M Y] though.

    On the same global setting page Quform isn’t picking up some of the email “recipient” or “from” address entries.

    The notification emails are coming through with a different default_from_email_name and default_email_name for example. It is picking up the email account default name, so this issue may be a mailbox security authentication thing.

    Appreciate you reading through this post trail from top to bottom as the underlying concerns still remain… and behaviour is not per global settings

    in reply to: Calculations with range slider #25538
    katw
    Participant

    I should mention:

    A. The calculations (using the code above) are only client-side (for user interface feedback).

    To store the “total-cost” value on form submit; so you can also use it in email notifications or keep in database you will need to add an extra hidden field to your form.

    Also you will need to add an extra line of code under comment //Update cost to set the value of this new field to the calculated total.

    B. I don’t know if your two sliders have a default starting value or both start at 0.

    If the latter you might want pre-populate the <DIV> ‘total-cost’ with ‘€ 0’.

    <div class="total-cost">&euro; 0</div>

    If the former you could use the same technique just mentioned and fill it with the starting total cost. Or call the doCalc() function just before the closing brackets of the jQuery(document).ready(function($) to have it calculate and pre fill the DIV

    C. Code field references are for QuForm 2.

    in reply to: Calculations with range slider #25536
    katw
    Participant

    Hi @blackbeard,

    This should get you started.

    Hoping no typos as I have been pulling long hours 😉

    Add the following to QuForms > Settings > Custom CSS & JS

    // When DOM ready, do:
    jQuery(document).ready(function($) { 
    
    	var doCalc = function() {
    		//get value of slider hidden fields
    		var creditVal = $('.quform-field-1_9').val();
    		var durationVal = $('.quform-field-1_10').val();
    		if (creditVal.length==0 || durationVal.length==0) return; // exit if no values
    		
    		// convert to integer and check numbers returned
    		// have specified radix as decimal for old browsers
    		creditVal = parseInt(creditVal,10);
    		durationVal = parseInt(durationVal,10);
    		if (isNaN(creditVal) || isNaN(durationVal)) return; //exit values not numeric
    
    		//do cost calculation
    		var totalCost =  creditVal * durationVal;
    
    		//Update cost
    		//Remember to put on page: <div class="total-cost"></div>
    		$("div.total-cost").html("Total cost: &euro;" + totalCost);
    	}
    
    	//On change of slider, recalculate cost
    	//===============
    	$('.quform-field-1_7').on('change', doCalc); //credit amount slider
    	$('.quform-field-1_8').on('change', doCalc); //duration slider
    });

    Replace:

    • 1_7 with ID of your credit slider field
    • 1_8 with ID number of your duration slider
    • 1_9 with ID of hidden field capturing credit slider value
    • 1_10 with ID number of hidden field with duration slider value

    Also add a div with class name ‘total-cost’ to your form/page. You can do this using HTML field.

    <div class="total-cost"></div>

    I have assumed from the screenshot of your form you are working with whole numbers not fractions.

    If this is not true, then the parseInt conversions will need changing to parseFloat. You also need to do extra work to handle rounding. See this great page for ideas.

    I have attached ‘on change’ events to each slider field to trigger recalculations and post new value to ‘total-cost’ DIV.

    Good luck

    • This reply was modified 6 years, 11 months ago by katw. Reason: Tweaked code comments
    in reply to: Strange > Settings reset themselves #25531
    katw
    Participant

    Changing the Date & time format = (PHP) in Quform settings (just for more testing) hasn’t had an impact on either the entries list view or email notification {date} {time} fields.

    The notification emails are only showing M/D/Y when it should be day, date month year and time is outputting as H:MM when should be HH:MM:SS

    The locale is defined as English (Australia) and the .htaccess file also has a timezone defined as Sydney Australia.

    So dates and times are output wrong everywhere, not just entry list view.

    My new settings are attached.

    Attachments:
    You must be logged in to view attached files.
    in reply to: 2 questions regarding range slider #25529
    katw
    Participant

    @blackbeard Congrats!

    Also I spotted a trailing comma in my second code that shouldn’t be there.

    format: wNumb({
    		decimals: 0,
    		suffix: ' months' (remove comma here)
    	}),
    in reply to: Calculations with range slider #25527
    katw
    Participant

    Hi @blackbeard,

    Do you capture the value of each slider in hidden fields?

    Are the values pushed into the fields numbers? So you can multiply cleanly or are they a mix of numbers and text (eg “23USD” v’s “23”)?

    For my latter question you should be able to see the values in entries-view (assuming form is submitting ok).

    Are you wanting to show the calculation result live to the customer or is this for back-end?

    • This reply was modified 6 years, 11 months ago by katw. Reason: fixed grammar
    in reply to: Strange > Settings reset themselves #25525
    katw
    Participant

    I might have worked out the change in date… it appears any QuForm Entries for the current day DO NOT show the DATE and only display the time.

    Q1. This is wierd. Is there a way to force it to standardise on DATE TIME?

    Q2. Why isn’t the date and time using my preferred format as I had set in Settings? (screen shots in posts above)

    Q3. Is there a way to have Entries List view show other fields like Firstname/Lastname of respondent?

    in reply to: Strange > Settings reset themselves #25518
    katw
    Participant

    Wordpress Settings > General attached:

    Attachments:
    You must be logged in to view attached files.
    in reply to: Strange > Settings reset themselves #25515
    katw
    Participant

    I cant seem to find a way to restore the date format shown for Entries…

    It is useless having a time only, no date or anything to distinguish form submissions.

    Global date settings are attached.

    I also checked with hosting and they assured me no software or hardware changes occurred in the time period.

    • This reply was modified 6 years, 11 months ago by katw. Reason: Added answer from hosting service
    Attachments:
    You must be logged in to view attached files.
    in reply to: Suggestions & Ideas #25513
    katw
    Participant

    Picture to support my posting May 4, 2018 at 1:59 am

    RE: Add more informative alert message for session timeout in QuForm Edit.

    Attachments:
    You must be logged in to view attached files.
    in reply to: 2 questions regarding range slider #25508
    katw
    Participant

    Hi, thought I may be able to help.

    1] The slider has many configuration options (docs here).

    To remove decimal points add the format parameter to the CREATE function you previously loaded to CUSTOM JS.

     .....  (look for:)
    
             if (slider) {
                noUiSlider.create(slider, {
                    start: [20, 80],
                    connect: true,
                    step: 1,
                    tooltips: true,
                   // ADD THIS 
                    format: wNumb({
                        decimals: 0
                        }),
                   // END ADD
                    range: {
                        'min': 0,
                        'max': 100
                    }
                });
    ........

    2] Did you want the suffix displaying on screen to user or just wanted the suffix saved to the hidden field?

    One way is to use the suffix parameter available in the slider.

    This requires a slight adjustment to the code you were inserting above. Replace the three lines we added in Question 1 with the four lines below:

    format: wNumb({
    		decimals: 0,
    		suffix: ' months',
    	}),
    • This reply was modified 6 years, 11 months ago by katw. Reason: Added suffix parameter code
Viewing 15 posts - 106 through 120 (of 147 total)
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy