[PR #19678] feat: Support hidden fields in the start node #29207

Closed
opened 2026-02-21 20:45:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/19678

State: closed
Merged: Yes


Summary

This PR introduces hide option for chatflow start node custom input field.

Close https://github.com/langgenius/dify/issues/19336
Close https://github.com/langgenius/dify/issues/8180
Close https://github.com/langgenius/dify/issues/12153
Close https://github.com/langgenius/dify/issues/15723

Screenshots

Before

image image image image image image

After

required and hide options cannot be selected at the same time.

image image image image image image image image

With hide option enabled, input fields are hidden. Developers need to ensure the availability of the field, otherwise the workflow may not function properly.

If all input fields enable hide option, the InputsForm will not be displayed and the user can directly initiate a conversation.

If not all inputs enable hide option, the InputsForm only display input fields with hide disabled and the user still needs to perform necessary input and click confirm.

image image image image

I only update en-US i18n. It seems that we have a auto-gen script that will update others.

Feel free to tell me your thoughts. Thank you! 🙏

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/19678 **State:** closed **Merged:** Yes --- # Summary <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. > [!Tip] > Close issue syntax: `Fixes #<issue number>` or `Resolves #<issue number>`, see [documentation](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) for more details. --> This PR introduces `hide` option for chatflow start node custom input field. Close https://github.com/langgenius/dify/issues/19336 Close https://github.com/langgenius/dify/issues/8180 Close https://github.com/langgenius/dify/issues/12153 Close https://github.com/langgenius/dify/issues/15723 # Screenshots ## Before <img width="1512" alt="image" src="https://github.com/user-attachments/assets/b309fba5-ea0a-4091-9a4d-1245d59823d1" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/fc0c1981-59db-4d9b-a50a-03b54a974b87" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/f16b76e8-b543-4b41-861a-be48fca174c1" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/ca0d8228-17c0-4a3a-8124-bc42cfb7e157" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/9ae9dea8-d136-418e-8f03-3a21fa26ebca" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/280df8c9-cb3b-443a-a227-9714ac2045ce" /> ## After `required` and `hide` options cannot be selected at the same time. <img width="1512" alt="image" src="https://github.com/user-attachments/assets/fe1ce2f4-3beb-4f43-84fe-9790b8ed7877" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/bbdbd8a7-5d7f-404e-bae9-3c98b6fac88d" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/3f3c1e91-ad0a-4f2e-acc7-c913ab509ca0" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/1ac1035d-4043-4084-9a3e-a3a3a0e330df" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/9f49e2ca-4f17-4b6e-bc60-71fb6df9cb2f" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/2125c2f7-5a9d-48b1-992c-194947b8ec06" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/4f930808-6065-41fc-889f-6c54e5287cfe" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/25d5a550-84bf-4e48-b1dc-e1f937141f86" /> With `hide` option enabled, input fields are hidden. Developers need to ensure the availability of the field, otherwise the workflow may not function properly. If all input fields enable `hide` option, the InputsForm will not be displayed and the user can directly initiate a conversation. If not all inputs enable `hide` option, the InputsForm only display input fields with `hide` disabled and the user still needs to perform necessary input and click confirm. <img width="1512" alt="image" src="https://github.com/user-attachments/assets/be2c47a2-cec2-4ab2-aa04-e568a544182d" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/f6a70a75-69de-4994-8996-35d93f177b73" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/234efb04-8bc6-46e1-af81-4af3f287e3dc" /> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/0bf16557-8a33-459e-bb73-1b0bd12d43e8" /> I only update en-US i18n. It seems that we have a auto-gen script that will update others. Feel free to tell me your thoughts. Thank you! 🙏 # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:45:04 -05:00
yindo closed this issue 2026-02-21 20:45:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#29207