How can I label certain fields as optional in liquid?

Hi Shopify community!

We have the following fields on certain products for customers to fill out but the “To” “Message” and “From” fields are optional to enter. We created this in liquid. Is there a way we can easily add the text “Optional” (in grey ideally) to these fields so customers know it’s not required to enter? Thank you!

@Becca_at_Honey
Welcome to the Shopify community!
Thanks for your good question.

Please share your store URL.
So that I will check and let you know the exact solution here.

And it can be added by the custom code.

Hi there!

Here’s a link to a product for which the above applies to:

https://shop.honeyandco.co.uk/collections/vouchers-hampers/products/the-birthday-hamper

the required field is added to the date input field.

So remove the Require tag from the Date input then,
it will be optional to choose or not,

i hope you get my point.
Thank you.

Thank you it makes sense as already enabled :slightly_smiling_face:

We just wanted to add the text “optional” in the fields so customers can see that is an optional field.

@Becca_at_Honey

you mean date of collection/delivery will be optional field.

right?

Hi there! Thank you for your help but that’s not quite what I mean. Please see a mock up of what I mean, excuse the crudeness!

The customers would then ideally be able to type over the “optional” text.

Hope this now makes sense.