Well, to start your entries at a specific number, if you are comfortable with database table manipulation/queries, you could set the number that the auto increment field starts with. If you aren't really comfortable modifying the database, you could always submit a form until your entry id reaches the number you want your live form to start with (not the greatest way).
I was trying to give you the easiest way to do it. There is another way, which would require a little bit of php code. If the number can be completely random, you can add a little bit of code to your form to populate a hidden field. The hidden field can then be sent in your email notification. This would involve adding the hidden field, checking the setting "Allow field to be populated dynamically" and adding a "Parameter name" in the input box that appears. Then you would add a Gravity Forms hook to your theme's functions.php file which would generate a random number which populates the hidden field. Then in the admin, you would select this hidden field as one of the fields which is sent in your email notification. Below is an example of the code you would add. This uses the hook "gform_field_value_$parameter_name (http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name).
add_filter("gform_field_value_random_number", "generate_random_number");
function generate_random_number($value){
return mt_rand();
}
Posted 12 years ago on Tuesday March 13, 2012 |
Permalink