Skip to content

Commit

Permalink
Merge pull request #125 from sageworksstudio/sageworksstudio-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Feb 15, 2023
2 parents 44ef86b + daf6846 commit 59e6e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ $shipping->displayIf("ProductType")->isEqualTo("furniture")
```php
<?php

use UncleCheese\DisplayLogic\Wrapper;
use UncleCheese\DisplayLogic\Forms\Wrapper;
//...
public function getCMSFields() {
$f = parent::getCMSFields();
Expand All @@ -107,7 +107,7 @@ use UncleCheese\DisplayLogic\Wrapper;
->displayIf("Vendors")->hasCheckedAtLeast(3)->end(),
CheckboxField::create('HasUpload', 'Has an upload'),

DisplayLogicWrapper::create(
Wrapper::create(
UploadField::create('FileUpload', 'Upload a file'),
LiteralField::create('test', '<strong>Keep the file small!</strong>')
)->displayIf('HasUpload')->isChecked()->end(),
Expand Down

0 comments on commit 59e6e46

Please sign in to comment.