Skip to main content
New Participant
Jan 31, 2024 4:00 PM UTC
Question

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

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
Jan 31, 2024 4:10 PM UTC

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
Jan 31, 2024 4:14 PM UTC

 [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
Jan 31, 2024 7:55 PM UTC

Thank you so much this did it!