Disabled field in UI for Update

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Documentation issue or request

Current behavior

Expected behavior

Minimal reproduction of the problem

Environment

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
Hi Sebastain
I am trying to disable id field if record is in update mode.
I read one of you previous comments and it said…

The context that is available in custom fields is also available in field rules now. So yoiu can just use ctx.initialContent to check for Create vs Update

So in Field rules, I have set
Disable id when ctx.initialContent === “Update”

but seems when I am in edit mode (In progress workflow status), it allows me to updat id.
Is it something I am doing wrong ?

image

Thanks

You just need to check whether the initialContent exists,

so ctx.initialContent should be enough.

you mean this ? didn’t work.

image

Which version do you use? It is not part of any official build yet, but you can use a dev flag.

version is 5.5.5.0.
so its not in this I guess.

You can use dev-5740

1 Like