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.

Hiding Fields in Stand Along Entry Form (SAEF)

March 01, 2011 12:07pm

Subscribe [2]
  • #1 / Mar 01, 2011 12:07pm

    OwensDDB

    42 posts

    I’m building a site in which users can send ideas via a SAEF - however, I don’t want to give them the option to choose a status, date or even URL title; really just a title and description. Can I limit the fields they are shown in any way? I’d do it via CSS but there aren’t specific enough classes to do so. (or I’d have to hide the entire form and absolutely position just one or two fields).

    Any thoughts are most appreciated.

    jamie

  • #2 / Mar 01, 2011 9:23pm

    Cheif

    626 posts

    You can set items like URL to:

    <input type="hidden" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50" />

    This will still accept the JS code to auto populate it.

    You can also omit items like the “Status” options by not declaring them in your SAEF form or like the above set it to something fixed and/or hidden.

    We’re currently doing an SAEF/Edit form and simply omit or hide the items that we dont want modified.

  • #3 / Mar 02, 2011 1:21pm

    Sue Crocker

    26054 posts

    Thanks for the assist, Cheif.

    JamieFirstAd - are you using SafeCracker or the built in SAEF?

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

ExpressionEngine News!

#eecms, #events, #releases