7 years ago
9
Topic

Hello,

I have tow forms:

  1. fm_contact_formular with the field "fm_recipient_email" (Text)
  2. fm_ad with the field "fm_email" (Text) and the field "fm_contact_form" (SEBLOD - Form from Form & List Pack)

I want to include the site form from fm_contact_formular into the Content View from fm_ad and pass the value from fm_email to fm_recipient_email. The result should be a prefilled field fm_recipient_email with the value from fm_email.

I tried this settings in the field fm_contact_form in fm_ad:

The result is, that the content from fm_ad is shown but not the site form from fm_contact_formular.

If I delete the options the content from fm_ad and the site form from fm_contact_formular are shown.

But how can I pass the values?

Thanks you for helping

Daniel

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
1
Level 1

Are you passing value from content to form (as you say in title) or from form to form (as you say in text)?

7 years ago
0
Level 2

I'm passing from content to form:

4229 Posts
Kadministrator
7 years ago
6
Level 1

You need to have your value present in the URL that is used to open this page, see tutorial. Another way would be to use SD live field.

7 years ago
5
Level 2

Thanks for answering.

Then I misunderstood the use of Form & List Pack. I thought that the possibilty to pass values from content to list and form was the big advantage instead of including the form with a module. But it seems that this is only working with a list but not a form.

Hence I want to pass more then one field in the end I will have a look at SD live field. Is SD live working with forms?

4229 Posts
Kadministrator
7 years ago
4
Level 3

Sd live should work  as it is made for such cases.

7 years ago
3
Level 4

I tried it with SD Live CCK Field Plugin. The result is: Oops! Template Init. failed.. ; (

What I have done:

In the form fm_contact_formular I choosed for the field fm_recipient_email as Live plugin SD Live CCK Field and entered as the Live Value CCK Field the field fm_email from my content fm_ad.

It seems the same problem as here:
https://www.seblod.com/community/forums/forms-content-types/prefill-form-module-with-variable-from-content-type

But I didn't found the solution there.

Any idea?

EDIT: Found the solution

With embedding the form with List & Form Pack the error is shown as mentioned above. When inlcuding the form with module everything ist working correctly.

4229 Posts
Kadministrator
7 years ago
2
Level 5

I amde an issue for the problem with seblod form plugin and SD live

https://github.com/Octopoos/SEBLOD/issues/347

4229 Posts
Kadministrator
7 years ago
1
Level 6

New version of SD live plugin that fixes problem with seblod form field has been published.

7 years ago
0
Level 7

Perfect support! Thank you!

Get a VIP membership