Skip to content

Commit d90444e

Browse files
committed
fix: holder ID for userform conditional support
1 parent 9d0c7b1 commit d90444e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/KeyValueField.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace FullscreenInteractive\KeyValueField;
44

5+
use SilverStripe\Core\Convert;
56
use SilverStripe\Forms\CompositeField;
67
use SilverStripe\Forms\FieldList;
78
use SilverStripe\Forms\LabelField;
@@ -35,6 +36,12 @@ public function setKeys(array $keys)
3536
}
3637

3738

39+
public function HolderID()
40+
{
41+
return Convert::raw2att($this->Name);
42+
}
43+
44+
3845
public function buildChildren()
3946
{
4047
$children = new FieldList();

0 commit comments

Comments
 (0)