Search

Ive got a list of entries on a page in the front end that I want to edit using 1 multiselect dropdown, Im using jquery to set all the inputs to match the one dropdown,

My problem

When i submit I can create item1,item2, in the fields, but the select box link doesnt link to each item seperately it concats the item1,item2, into one.

So when you look at the entry in the back end nothing is selected and in the data source it shows (item)item1,item2,(/item) as one item not 2.

What is the correct syntax for setting a selectbox link to equal another selectbox?

have you set the field name on the front end to be an array? So it would look something like fields[name][]

Ended up adding a selected entry to a hidden selectbox for each entry with jquery, it solved the issue.

$(".setme").append("<option value='"+field.value+"'  selected='selected'>"+field.text+"</option>");

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