![]() This means that you are able to interact with another field inside that repeater item easily without knowing which repeater item the current form component belongs to. This is because $get() and $set(), by default, are scoped to the current repeater item. However, you might experience unexpected behaviour when using this inside the repeater's schema. #Using $get() to access parent field valuesĪll form components are able to use $get() and $set() to access another field's value. >itemLabel(fn (array $state): ?string => $state ? null),Īny fields that you use from $state should be reactive() or lazy() if you wish to see the item label update live as you use the form. No Yes Check to require message priority.-> itemLabel ( fn ( array $ state ): ? string => $ state ? null), use Filament\Forms\Components\Repeater No Yes Check to require sender's date of birth.Ĭheck to require only the sender's month and day of birth.Ĭheck to require only the sender's year of birth. No Yes Check to require sender's website URL. No Yes Check to require sender's fax number. ![]() Request sender's fax number separate from sender's phone number.Request best time to call second phone number Fax will be removed as an option if a fax number is requested. Request sender's second phone number type (work, home, cell, fax). (Not recommended for a second phone number.) No Yes Check to require sender's phone number. No Yes Check to require sender's best time to call. ![]() No Yes Check to require sender's phone number type. Fax is also included as an option if a fax number is not requested below. Request sender's phone type as cell, home, work, other. No Yes Check to require sender's country. No Yes Check to require sender's zip code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |