Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Relationship field not populating for guest posts

Status Resolved
Add-on / Version Publisher 1.2.2
Severity Critical
EE Version 2.7.3

pɹǝɥ uɐp

Mar 11, 2014

I thought this was an EE bug, so the details are here (EllisLab login required):

https://support.ellislab.com/bugs/detail/20105

Basically, I have a channel called ‘reviews’. I want to allow guest posts to that channel using channel:form. There is a relationship field linked to the ‘products’ channel that is populated by a hidden field within the reviews channel form. The form submits OK, but the relationship field is not filled in. I have tried disabling Publisher for the ‘reviews’ channel and it still doesn’t work.

If I disable Publisher completely, it works fine.

#1

BoldMinded (Brian)

Dan, can you provide a copy of the channel:form tag you’re using?

#2

BoldMinded (Brian)

I’m not able to replicate this. I tested in 2 languages saving as open and draft with the full relationship field, and used the following to test a hidden field submission. All tests saved the relationship assignment just fine.

<input type="checkbox" name="page_relationship[data][]" value="16" checked="checked" class="js_hide"  none;">
#3

BoldMinded (Brian)

My full test form looks like this:

{exp:channel:form channel="pages" 
 return="layouts/saef/ENTRY_ID" 
 entry_id="{segment_3}" 
 publisher_status="open"}

<input type="hidden" name="publisher_save_status" value="open" />
<input type="hidden" name="publisher_view_status" value="open" />
<input type="hidden" name="lang_id" value="{publisher:current_language_id}" />

        <label for="title">Title</label>
        <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" >

        <label for="url_title">URL Title</label>
        <input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">

        <label for="entry_date">Date</label>
        <input type="text" name="entry_date" id="entry_date" value="{entry_date}" maxlength="23" size="25">

 {field:page_matrix}

 {field:page_playa_multiple}

 {!--{field:page_relationship}--}
 <input type="checkbox" name="page_relationship[data][]" value="16" checked="checked" class="js_hide"  none;">

        <input type="submit" name="submit" value="Submit">
{/exp:channel:form}
#4

pɹǝɥ uɐp

Hi,

The code I’m using is:

{exp:channel:entries channel="products" entry_id="157" limit="1" status="open" dynamic="no" }
{exp:channel:form channel="reviews" dynamic_title="Review of {title}"}
<fieldset>
<div><input type="text" name="review_name" value="" maxlength="128"></div>
<div><textarea name="review_text" cols="90" rows="6" maxlength="2000"></textarea></div>
{if captcha}
<div>{captcha} <input id="captcha" type="text" name="captcha" value="" maxlength="20" autocomplete="off"></div>
{/if}
<div><input type="hidden" name="review_product[data][]" value="{entry_id}" />
<button type="submit" value="Submit">Submit</button></div>
</fieldset>
{/exp:channel:form}
{/exp:channel:entries}

I’m going to set up a test version of the website (mainly for this issue: https://boldminded.com/support/ticket/794). I’ll let you know when that’s available so you can have a closer look at this.

Cheers.

#5

BoldMinded (Brian)

Was not able to replicate, and have not heard from customer. Closing ticket.

Login to reply