Jump to content


Photo
- - - - -

Setting Up Repeat Element That Always Needs 2 Values


  • This topic is locked This topic is locked
2 replies to this topic

#1 renee

renee
  • JBZoo User
  • User rate: 0
  • posts: 72
  • topics: 26

Posted 08 January 2014 - 16:29

In another post Kess explained use of the slider for value ranges: http://forum.jbzoo.c...-a-price-range/

 

On face value this works well. But my information is submitted via frontend submission and it isn't done manually it's done by auto form post method.

 

There is no one there to click the "Add another Text" link.

 

In this instance the field I want to search on has just an upper and lower range. I currently have them specified as two separate elements.

 

It seems to use the slider they need to be be one element but can have repeating values.

 

In my case I only and will always need 2 values.

 

So I'm wondering if there's a method of setting the form to have two entry boxes for the element as default - rather than a single entry box and a link to add the second?

 

I imagine this may involve looking at a php layout file but I'm waist deep in setting this up now and don't have time to find another method.


  • 0

#2 Kess

Kess
  • JBZoo User (rus)
  • User rate: 11.9
  • posts: 406
  • topics: 40

Posted 09 January 2014 - 02:59

It seems that "Add another text link" does nothing except of generating another html on the submission page. So it's enough to just click it once by yourself to see what it adds and then just include the name of the created input field to your autosubmitter. I think it should work even if nobody will press that button. Here is what i mean:

 

9yv_200x0.png

 

As you can see, the only difference in those inputs is one number in the name. I think that knowing this it's possible to set-up autosubmitter accordingly. Try that, please.


Edited by Kess, 09 January 2014 - 02:59.

  • 0

#3 renee

renee
  • Topic Starter
  • JBZoo User
  • User rate: 0
  • posts: 72
  • topics: 26

Posted 09 January 2014 - 15:36

Thanks for that, I'm going to attempt to test this using 'fiddler' at some point later on today.


  • 0




Click to return to top of page in style!