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 1522 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 1510 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 1506 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 1487 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 1480 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 1476 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 1469 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 1466 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 1462 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 1459 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 1456 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 1454 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 1452 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 1447 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 1434 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 1431 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 1429 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 1399 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 1394 Apr 3, 2020, 12:37 PM
Post; hot thread Re: [el noe] How to do this: Add multiple unique randomized hidden fields from desired range
VishalT 1388 Apr 3, 2020, 12:56 PM