Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter gingerstu

    (@gingerstu)

    That’s awesome George – much tidier solutiion. Mine was cobbled together with literally zero scripting experience. I’ll see if I can implement yours as it’s more adaptable should i want to add more fields at a later date.

    Thanks again,
    Stuart

    Thread Starter gingerstu

    (@gingerstu)

    The code create a variable for each field, obtaining the value from the field ID

    it then tests to see if there is a null entry, if there is, it does nothing, is there isn’t a null entry, it than places that value into an array.

    It checks each field building the array as it goes.

    it gets to the end, performs a check to obtain the minimum number, writes that to a variable and then updates the field that is meant to contain the minimum number from the array.

    Hope this helps someone out in the future.

    var c1a;
    		var c2a;
    		var c3a;
    		var c4a;
    		var c5a;
    		var c6a;
    		var c7a;
    		var c8a;
    		var c9a;
    		var minca;
    		const check_age = []
    
    		c1a = document.getElementById('input_19_29').value;
    		c2a = document.getElementById('input_19_30').value;
    		c3a = document.getElementById('input_19_31').value;
    		c4a = document.getElementById('input_19_32').value;
    		c5a = document.getElementById('input_19_33').value;
    		c6a = document.getElementById('input_19_34').value;
    		c7a = document.getElementById('input_19_35').value;
    		c8a = document.getElementById('input_19_37').value;
    		c9a = document.getElementById('input_19_38').value;
    
    		if(c1a == "" ){
    			
    		}
    		else{
    			const count = check_age.push(c1a)
    			
    		}
    
    		if(c2a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c2a)
    			
    		}
    
    		if(c3a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c3a)
    			
    		}
    
    		if(c4a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c4a)
    			
    		}
    
    		if(c5a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c5a)
    			
    		}
    
    		if(c6a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c6a)
    			
    		}
    
    		if(c7a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c7a)
    			
    		}
    
    		if(c8a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c8a)
    			
    		}
    
    		if(c9a == ""){
    			
    		}
    		else{
    			const count = check_age.push(c9a)
    			
    		}
    
    		minca = Math.min(...check_age);
    		document.getElementById('input_19_99').value = minca;
    
    • This reply was modified 6 years, 2 months ago by gingerstu.
    Thread Starter gingerstu

    (@gingerstu)

    Hi George . Thanks for the follow up. I assumed something along these lines
    I managed to fix it with some java script. I’ll post that later when I’m in front of my laptop. It may help out someone else in the future

    Thanks
    Stuart

    Thread Starter gingerstu

    (@gingerstu)

    hi – I managed to “hack a solution” by writing some jquery that executed the form submit action or click of the radio button, and then via css zindex the submit button off of the screen.

    you can have a look at the page
    here

    the two buttons at the bottom of the page

    thanks,
    stuart

    Forum: Plugins
    In reply to: [MaxiCharts] Number fields
    Thread Starter gingerstu

    (@gingerstu)

    Hi
    Could you provide a quote to do this?

    Im looking at an alternative of wpdatatables to create the required table and associated form but if you can develop a solution I would be interested in discussing.

    Thanks
    Stuart

    Thread Starter gingerstu

    (@gingerstu)

    worked a treat, thank you

    Forum: Plugins
    In reply to: [WP Pipes] No Videos
    Thread Starter gingerstu

    (@gingerstu)

    yeah, worked that out, thanks anyway!

    I’ve tried reading the documentation – I’m not the most technical person going but happy to persist.

    Thanks,
    Stuart

    Forum: Plugins
    In reply to: [WP Pipes] No Videos
    Thread Starter gingerstu

    (@gingerstu)

    hi just tested this – with the parse-code you specified it does bring over the video content but now does not bring anything else (text and images)??

    Thanks,
    Stuart

    Forum: Plugins
    In reply to: [WP Pipes] No Videos
    Thread Starter gingerstu

    (@gingerstu)

    lovely, thank you

    Forum: Plugins
    In reply to: [WP Pipes] No Videos
    Thread Starter gingerstu

    (@gingerstu)

    thanks for the reply. any ideas what the “correct way” would be. i.e. what is the syntax for capturing the <iframe>?

    Thanks,
    Stuart

    Forum: Plugins
    In reply to: [WP Pipes] No Videos
    Thread Starter gingerstu

    (@gingerstu)

    here is the feed – not all posts have videos but some do

    http://feeds.feedburner.com/3dPrintingIndustry

    Forum: Plugins
    In reply to: [WP Pipes] exclude content
    Thread Starter gingerstu

    (@gingerstu)

    I’ll take a look – hopefully be able to make sense of it

    Forum: Plugins
    In reply to: [WP Pipes] exclude content
    Thread Starter gingerstu

    (@gingerstu)

    ok, thanks – where can i find the Parser codes and how to use them? The plugin sites seems to be in transition to a new platform and information doesnt seem easily found.

    Thanks,

    Forum: Plugins
    In reply to: [WP Pipes] No Videos
    Thread Starter gingerstu

    (@gingerstu)

    any clues on what you “do” with the Combine Processor for it to do it’s thing? Not exactly self explanatory 🙂

    Thanks,
    Stuart

    Thread Starter gingerstu

    (@gingerstu)

    That’s great, many thanks for that!

    What I’m struggling to work out, at a data level, is that if a “member” is logged into my site, they then respond to a poll, how can I tie up the answer provided to the actual user.

    Any ideas?

    thanks,

Viewing 15 replies - 1 through 15 (of 16 total)