I have a page with custom template - hidden link (house for rent)
This page contain block "Infrastructure" - hidden link
Block "Infrastructure" was created with help of repeatable fields group - hidden link (because every house has different Infrastructure nearby, so I used repeatable fields group)
According to the idea, users themselves must add houses to the site, using front-end form. I created form hidden link (you must log in to see).
But this form contain all need fields exept repeatable fields group "Infrastructure". So users can add a new house to the site but without Infrastructure.
Can this be fixed?
Hello, it is not currently possible to do this in one Form, so you must create two Forms:
Form #1. Create a House
Form #2. Create an Infrastructure Repeating Field Group
When you create Form 2, it will include a field where the User can select which House will contain the Repeating Field Group. You can add the House ID as the value of this field, and hide the field from your Users with CSS. Here is an example:
<div class="form-group" style="display:none;">
<label>House</label>
[cred_field field='@infrastructure-rfg.parent' select_text='--- not set ---' class='form-control' output='bootstrap' value='12345']
</div>
Replace 12345 with the numeric ID of a House post, and change infrastructure-rfg to match the slug of your Repeating Field Group.
When user add a new house (on this page hidden link), it would be logical, that he immediately can add all information about the house (including infrastructure).
At this moment, this logic is impossible to implement. Right?
The user must at first fill and send "Form #1.Houses", then, after my moderation and publication house on the site, the user can fill and send "Form #2. Infrastructure Repeating Field Group" and add Infrastructure near this house. It is correct?
======================
Is it possible in the future versions of Toolset to do this in one Form?
At this moment, this logic is impossible to implement. Right?
Correct, at this moment it is not possible to add a House and add its Infrastructure RFGs at the same time. The House must be created first, then the RFGs can be added to the House.
The user must at first fill and send "Form #1.Houses", then, after my moderation and publication house on the site, the user can fill and send "Form #2. Infrastructure Repeating Field Group" and add Infrastructure near this house. It is correct?
Yes and no. In the normal workflow, the House post must be published before RFGs can be added from the front-end of the site. If your site's publication workflow requires approval, then your moderation process must occur before the RFGs can be added. However, the cred_save_data and post relationships APIs can be used to write custom code that will allow you to connect RFGs to a post that is still Pending Review.
Is it possible in the future versions of Toolset to do this in one Form?
If you would like to see this feature added, I recommend you create a new ticket here in the forums using the "Suggest an improvement" feature. Describe how you would like to add a repeating field group when creating a new post in one Form, and our developers will evaluate your request.