Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How to do this: Add multiple unique randomized hidden fields from desired range

Quote Reply
How to do this: Add multiple unique randomized hidden fields from desired range
What I have done so far:

Created 31 link properties (using Add Column) with following name:
rand1
rand2
rand3
.....
rand31
------------------------


Problem:
When any listing is added,along with all other info submitted by end-users, I also want to add multiple (rand1 to rand31) hidden fields with randomized value.


So for add listing form, along with regular form fields, there will be 31 hidden fields as:



<input type="hidden" name="rand1" value="7">
<input type="hidden" name="rand2" value="25">
<input type="hidden" name="rand3" value="16">
.....
<input type="hidden" name="rand31" value="2">

-------------------------------------
Can this be done using a global or some other way so that every time the add-listing form is added, the order for 'values' in hidden form is randomized.

i.e. for listing 1 that is added, rand1 = 1, & so on till rand31.
while next for next listing that would be added, rand1 = 'would be some other number'.. (between 1 & 31).





Note: in above example 'value' are added for example. Ideally they could be any value between 1 & 31, and they will also be unique, so no to rand$ fields will be duplicate/equal of each other.



Thank you.





Vishal
-------------------------------------------------------
Subject Author Views Date
Thread; hot thread How to do this: Add multiple unique randomized hidden fields from desired range VishalT 16501 Mar 31, 2020, 9:59 PM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Andy 16355 Apr 1, 2020, 1:12 AM
Thread; hot thread Re: [Andy] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16346 Apr 1, 2020, 1:33 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
el noe 16331 Apr 2, 2020, 3:38 PM
Thread; hot thread Re: [el noe] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16314 Apr 3, 2020, 12:00 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
el noe 16311 Apr 3, 2020, 12:31 AM
Thread; hot thread Re: [el noe] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16315 Apr 3, 2020, 1:01 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
el noe 16300 Apr 3, 2020, 1:16 AM
Thread; hot thread Re: [el noe] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16308 Apr 3, 2020, 1:26 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Andy 16296 Apr 3, 2020, 1:35 AM
Thread; hot thread Re: [Andy] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16300 Apr 3, 2020, 1:40 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Andy 16297 Apr 3, 2020, 1:41 AM
Thread; hot thread Re: [Andy] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16316 Apr 3, 2020, 1:45 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Andy 16287 Apr 3, 2020, 1:53 AM
Thread; hot thread Re: [Andy] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16294 Apr 3, 2020, 2:04 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Andy 16278 Apr 3, 2020, 2:07 AM
Post; hot thread Re: [Andy] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16256 Apr 3, 2020, 2:22 AM
Thread; hot thread Re: [Andy] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16274 Apr 3, 2020, 10:04 AM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
el noe 16227 Apr 3, 2020, 12:37 PM
Thread; hot thread Re: [el noe] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 16261 Apr 3, 2020, 12:56 PM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Robert 14274 Sep 1, 2020, 10:29 AM
Thread; hot thread Re: [Robert] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 14270 Sep 1, 2020, 5:31 PM
Thread; hot thread Re: [VishalT] How to do this: Add multiple unique randomized hidden fields from desired range
Robert 14247 Sep 2, 2020, 6:41 AM
Post; hot thread Re: [Robert] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 14230 Sep 2, 2020, 10:22 AM