F
Filamentβ€’2y ago
Scott

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:
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 IMO
Jump to solution
6 Replies
Vp
Vpβ€’2y ago
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
Scott
ScottOPβ€’2y ago
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
Vp
Vpβ€’2y ago
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 IMO
Scott
ScottOPβ€’2y ago
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!
awcodes
awcodesβ€’2y ago
Might want to checkout #shout too.

Did you find this page helpful?