Automatically overwrite editor value

Automatically overwrite editor value

mRendermRender Posts: 151Questions: 26Answers: 13

I have this code, which is working when I create a field.

{
                label: "Edited By:",
                name: "projdetail.edited_by",
                def: "<? echo $_SESSION['uid'] ?>"
            }, 

The issue is that when I edit the field, the value gets pulled from the database and doesn't update with the current session variable.

Should I be setting this value on the processing page? I'm not sure what the best way to go about this is.

UID 1 can create it, which is fine and works.

But if UID 2 edits the post, I want 2 to be the value and not 1.

Answers

  • allanallan Posts: 61,950Questions: 1Answers: 10,158 Site admin

    Looks like it should work to me. Can you link to the page and also show the PHP you are using please?

    Allan

This discussion has been closed.