Share feedback, ideas and get community help

Updated 6 months ago

Options defaultvalue

At a glance
The community member is setting the defaultValue in options.string.layout, but when they try to access options.name, it is coming up as undefined. They are trying to set a value in a text field without it being undefined. The community member is using a condition to check if options.conversationId has a value, but it is always coming up as undefined. There is no explicitly marked answer in the comments.
Hi guys I'm setting the defaultvalue in options.string.layout but when I go to options.name it's coming up undefined, how do I set a value in a text field without it coming up undefined?

Plain Text
conversationId: option.string.layout({
      label: 'Conversation ID',
      defaultValue: '37',
      isRequired: true,
      isHidden: false,
    }),

if (!options.conversationId) return logs.add('Conversation ID is missing')



I'm doing it like this, and passing a condition to check if it has any value, but it always comes undefined
Add a reply
Sign up and join the conversation on Discord