Forums

Direct list editing - Save Failed

JvdStel 19 Mar, 2016
Hi,
I want to implement the "Direct list editing" feature on my website, following Max's example in the CCv5 FAQ.

Following the example, I have defined an alias as follows:
WED.alias:<input type="text" name="WED[{WED.cf_id}][alias]" value="{WED.veld}" class="form-control A" size="5"/>

I have included the "Update List" control button and have updated the Permissions section as explained.However, when I test the result and make an update in the new alias field, it tells me "Save Failed".

Any clue where to search for an error?

Johan
calculus00 19 Mar, 2016
Hello JvdStel,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Direct list editing
P.S: I'm just an automated service😉
GreyHead 19 Mar, 2016
Hi Johan,

The first check is to turn the CC Debugger on - that I think will show you the DB Query that is being created. You turn the Debugger on near the bottom of the Front List > Settings tab.

You might also look at the page HTML to see what values are being set in that HTML.

Bob
JvdStel 19 Mar, 2016
Thanks Bob, that helped,
I have created the following code to allow the user to edit the "WED.veld" field directly in the list via this code:

WED.veld:<input type="text" name="WED[{WED.cf_id}][veld]" value="{WED.veld}" class="form-control A" size="5"/>



What I would like is to limit the number of choices via the "select" input. So I guessed this would do the trick:


WED.veld:<select size="1" class="" title="" name="WED[{WED.cf_id}][veld]" class="form-control A" size="5">
<option value="">Maak uw keuze</option>
<option value="1">1</option>
<option value="1a">1a</option>
<option value="1b">1b</option>
<option value="2">2</option>
<option value="2a">2a</option>
<option value="2b">2b</option>
</select>


I guessed wrong, because it does not work as expected. Looks like only the <select...> line is read and none of the <option value...> lines. Any suggestions on how to implement this?

Johan
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger