ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker problem

July 01, 2011 4:00am

Subscribe [1]
  • #1 / Jul 01, 2011 4:00am

    ravor44

    1 posts

    Hi everyone,

    I have a simple form which can edit channel entries which custom field must satisfy a condition. Here it is.

    {exp:channel:entries channel="notes" search:note_score="=100" dynamic="off" limit=1}
      <?php $a = ‘{entry_id}’; ?>
      {exp:safecracker entry_id='<?php echo $a; ?>' return="something"}
        {status_menu}
          Status
      <select name=“status”>
      {select_options}
      </select>
        {/status_menu}
      <input type=“submit” value=“Submit” />
    {/exp:safecracker}
    {/exp:channel:entries}

    The error says, title is required. But when I manually (or hard-coded) enter the entry-id, it works. Any suggestions on how to make this work?

    Thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases