-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting initial value for input interactive element #1030
Comments
Hi @ido-vcita 👋🏻 Block Kit already allows you to define an If you're having trouble, would you mind uploading a code sample to recreate the problem? Thanks! |
@ido-vcita The model classes for block elements should have all |
I am getting the following message when try to initialize an InteractiveInputElement with initial_values: import logging
logging.basicConfig(level='DEBUG')
from slack_sdk.models.blocks.block_elements import *
input_interactive = InputInteractiveElement(action_id='test_action', type='plain_text_input', initial_value='test') OUTPUT: Am I doing something wrong here? |
@ido-vcita Ah, I see. We should improve the log message but it is a base class. Please use the |
Although using sub classes is recommended as I mentioned above, the warning logs you encountered do not tell anything meaningful. Thus, we'll remove them by this pull request. #1032 Thanks for your inputs here. Also, if everything about this topic is clear now, would you mind closing this issue? |
Thanks for the help, I appreciate it. Closing the case now |
Please allow setting and initial value in input interactive element
Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: