SunshineConversationsClient::Field

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeStringThe field type.
nameStringThe name of the field. Must be unique per form or formResponse.
labelStringThe label of the field. What the field is displayed as on Web Messenger.
textStringSpecifies the response for a text field.[optional]
emailStringSpecifies the response for a email field.[optional]
selectArray<Object>Array of objects representing the response for a field of type select. Form and formResponse messages only.[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Field.new(
  type: null,
  name: null,
  label: null,
  text: null,
  email: null,
  select: null
)