- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:50 PM
Hey, I created new state flow but it seems that it dose not work on new record form. only after I save the record it apply the state flow.
why is that ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:34 AM
yes this is correct. A new record has no value, and thus no conditions can be applied. Furthermore, state flows work on the server side and this requires any record operations like saving or updating.
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 01:21 AM
Hi,
What you can do is make state field readonly on New Form or hide it completely.
Also you may remove unwanted options by checking g_form.isNewRecord() in onLoad client script.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:34 AM
yes this is correct. A new record has no value, and thus no conditions can be applied. Furthermore, state flows work on the server side and this requires any record operations like saving or updating.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:39 AM
so should I use a client script that Hide the options that I don't want show at new ?
the g_form.isNewRecord() function and hide options of state ? or there is a better way to hide them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:49 AM
it's pretty confusing what you are writing. I'm not even sure whether I got your question initially. Your screenshot is not helping and I'm wondering why you want to replace the existing state flows for the Case table.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:57 AM
if you may let me clarify my situation. there is couple of state that I want to view only if specific state is the current state. I archived that using the state flow and it works for existing records. but a new record ( before creating the record) it shows all the states. I want to apply the conditions that I have for existing record to work on new record. hope that clarify my situation