Child Taxonomy From FP data

Hey, once again, what a plugin!

I am stuck, and don’t know if this is going to work. So before I spend a day on messing with it I thought I would try and explain what I want to do.

If I have a parent taxonomy, with 6 child taxonomies as an example. I also have a conditional logic set for a new text field for ADD ANOTHER. This works fine, and everything is working like I want it to.

I would like to add the TEXT CONTENT form the field ADD ANOTHER to the list of child taxonomies. Although manually this is easy enough, I was hoping someone might offer some guidance if this will be possible to do within the range of Formidable Pro settings.

Kindly

 

 

I'm not really sure what you're asking. Clarification please?

Hi Stephanie, sometimes I confuse myself

The link should make it clear. If you get to the point where it says add my city/town and a blank text field appears, I can get that text to me of course via email or form fields, but as the town /city forms part of a parent taxonomy, I was thinking of populating the child taxonomy fields dynamically, from the data entered.

My taxonomy is location - then has Eastern Cape (parent) and Bisho etc as child taxonomies. If I can write the text that is added as ADD TOWN / CITY to be added same as Bisho etc.

Experimental Link : http://www.web-directory-service.com/universalwp/dynamic-submission/submit-listing/

I think not, but would welcome suggestions to try

I'm not sure if this is what you're after, but have you tried using a "Tags" field for the "City / Town Name" field? After you add the tags field, go to the "create posts" tab, and add that field as a taxonomy as well.

There has been a change made for the next release to allow multiple fields to work correctly when mapped to the same taxonomy. You can make this change now by opening formidable/pro/classes/models/FrmProEntryMeta.php and changing line 272 from:

$_POST['frm_tax_input'][$tax_type] = $value;

to:

if(!isset($_POST['frm_tax_input'][$tax_type])){
    $_POST['frm_tax_input'][$tax_type] = $value;
}else if(!empty($value)){
    $_POST['frm_tax_input'][$tax_type] = array_merge($_POST['frm_tax_input'][$tax_type], array_map('trim', explode(',', $value)));
}

Then, in that same file, change line 323ish from:
if ( is_array($tags) )

to:
if ( is_taxonomy_hierarchical($tags) )

OK, I work from here and give it some trials and tribulations, thanks :)

Topic closed.