Search

I’ve got a form which I use to store input in a datasource and send mail with the mail template filter extension. The data for the text/textarea/select bos fields is stored just fine. However the data for the Select Box Link is not saved. I just added a Bi-Link field hoping tot get that to work, but I run into the same problem.

I simply copy pasted the form from the event description. With the Select Box Link field I did the following:

<input name="fields[activiteit-locatie]" type="hidden" value="..." />

<input name="fields[activiteit-locatie]" type="hidden" value="{locaties-by-name/entry/naam}" />

Which nicely changes into:

<input name="fields[activiteit-locatie]" type="hidden" value="Soesterberg" />

The event works. But does not save the content of those linking fields. When I label them required in the section, it saves a link to the first entry of that data source instead of the one given.

What am I missing?

Those fields store IDs. You’d have to pass the ID of the linked entry rather than its title or whatever.

Thanks! That works a lot better!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details