Hi Chris, I am still somewhat of a novice I feel and I do appreciate your help. I have added the index.php (which loads all my categories) to a pastie here http://pastie.org/3143768 Line 90 is where I call the form. You can view the form on any of my category pages. here is 1 example http://freeineurope.com/category/free-tourist-attractions-in-netherlands-holland/
The Post Category field currently displays a drop down box with the option to select any of the categories in my blog. However in the case of the Holland Category linked above I want this field to be pre-populated with the "Holland" Category.
I found the below code on this forum ( http://www.gravityhelp.com/forums/topic/dynamically-populate-field-using-variable ) without success
add_filter("gform_field_value_categoryid", "populate_categoryid");
function populate_categoryid($value){
return get_query_var('cat');
}
Please advise if you need more information.
Posted 12 years ago on Saturday January 7, 2012 |
Permalink