Skip to main content
New Participant
January 31, 2024
Question

Is it possible to configure the Placeholder Text of the "File Upload" component?

  • January 31, 2024
  • 3 replies
  • 0 views

Howdy all, 

Haven't seen this question yet, but is it possible to change the look of the File Upload component's Placeholder, to add more visibility.

To Either Reflect This or 

- Option 1:

Option 2:

This is the code snippet:

a!fileUploadField(
  label: "Attachments",
  labelPosition: "ABOVE",
  target: cons!FileLocation,
  value: local!attachment,
  placeholder: "",
  saveInto: {
    ri!Attachment.ID,
    local!attachment
  },
  validations: {},
  buttonStyle: "STANDARD"

3 replies

konduruc733182
Inspiring
January 31, 2024

Hello [mention:96572c3135714342ac9aa9cfdd3604de:e9ed411860ed4f2ba0265705b8793d05] 

As far as I am aware It is not possible to change any further than the available options.
Have you tried using the instructions parameter to display any required text?

harshitb6843
Brainy
January 31, 2024

 [mention:96572c3135714342ac9aa9cfdd3604de:e9ed411860ed4f2ba0265705b8793d05] Try this code block. 

{
      a!richTextDisplayField(
        labelPosition: "COLLAPSED",
        value: { a!richTextItem(text: "Attachments") }
      ),
      a!cardLayout(
        showBorder: false(),
        padding: "NONE",
        style: "#FFFFFF",
        contents: {
          a!fileUploadField(
            labelPosition: "COLLAPSED",
            label: "Attachments",
            placeholder: "",
            validations: {},
            buttonStyle: "STANDARD"
          )
        }
      )
    }

kevinp617Author
New Participant
January 31, 2024

Thank you so much this did it!