Skip Navigation

[Resolved] Cannot update the parent relationship using relationship form

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 0 replies, has 1 voice.

Last updated by kelvinL-2 5 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#1295603
Screenshot 2019-07-19 at 3.42.53 PM.png
Screenshot 2019-07-19 at 3.17.10 PM.png

Dear Sir/Madam,

I refer to the document https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/, I have the custom posts Estate and District.

The relationship between Estate and District is many-to-1 where one District has many Estates

Each estate has already linked with one district.

I created the relationship form as below

[cred-relationship-form-container]
[cred-relationship-role role='parent'][cred-form-feedback field='feedback' name='feedback'][cred-form-submit field='submit' name='submit'][cred-form-cancel field='cancel' name='cancel']
[/cred-relationship-form-container]

I embed the relationship form into the Views

		<wpv-loop>
          <div class="row">
            <div class="col-sm-3">[wpv-post-title]</div>
            <div class="col-sm-9">[cred-relationship-form form='estate-relationship-form' child_item='$current']</div>
          </div>
		</wpv-loop>

I can view all estates from the Views and find the dropdown list parent District, I can't find the linked district to the estate when loading from Views, I change the district and submit, the relationship doesn't be updated.

What did I do wrong?

Best regards,

Kelvin