Show information / notices above a form?
hi guys,
I'd like to add some helpful guidance to the top of forms depending on the state of the form. For example, if they havent yet connected their WooCommerce site, at the top of the form I'd like to show a simple notice saying someting like "Don't forget to connect your site!"
Any ideas on how best to achieve this?
Solution:Jump to solution
In which part you want to show.. wdym by "top of a form"? If you use
->helperText()
in WooCommerce URL itself it will look good IMO6 Replies
Do you have any data whether they're connected or not..? or is that a part of the question? If you have then you can simple check like
if($connect == false) Some message
Yep, already got that, I just dont know how to add a notice to the top a form π (completely new to filament)
Seems I can only add fields, rather than just raw html for example
(and if I could output html, I could conditionally change what is said)
But I'm guessing there's a better "Filament" way of doing this?
Solution
In which part you want to show.. wdym by "top of a form"? If you use
->helperText()
in WooCommerce URL itself it will look good IMOOr you can use Placeholder https://beta.filamentphp.com/docs/3.x/forms/layout/placeholder
Ideally I'd like it to appear Above the "Airtable Extension API Token" section. It's basically onboarding text. It needs to be right at the top, because people are usually really bad at noticing details, so I want to make it big, prominent and impossible to miss
Placeholder looks like it might work, will try that π
That's exactly what I needed, thank you again!
Might want to checkout #shout too.