This topic is locked

Different 'Edit as' for Add and Edit pages

7/26/2007 4:08:17 AM
PHPRunner General questions
J
JahWobbler author

When using the visual editor, is it possible to have different 'Edit as' settings for the Edit page and Add page for a field?

i.e. I would like to use the lookup wizard when adding and have the field read only when editing. I am currently deselecting the field when editing but would like to show it.

TIA

J
Jane 8/1/2007

Hi,
unfortunately you can't use different "Edit as" formats on the add and edit pages.
As workaround you can do the following:

  • edit SQL query on the Edit SQL query tab. Here is a sample:
    select

    fieldname1,

    fieldname2,

    fieldname2 as fieldname2_edit,

    ...

    from tablename


2. check off fieldname2 on the all pages except edit page, fieldname2_edit on the edit page only on the Choose fields tab
3. set up different "Edit as" formats for these fieldname2 and fieldname2_edit fields on the Visual Editor tab.

J
JahWobbler author 8/21/2007

Thanks Jane

I created a diff view but this would have been more elegant

Regards

Albert

Hi,

unfortunately you can't use different "Edit as" formats on the add and edit pages.
As workaround you can do the following:

  • edit SQL query on the Edit SQL query tab. Here is a sample:

  1. check off fieldname2 on the all pages except edit page, fieldname2_edit on the edit page only on the Choose fields tab
  2. set up different "Edit as" formats for these fieldname2 and fieldname2_edit fields on the Visual Editor tab.