@if($showform)
@if(isset($record) && !$create) @endif @csrf @else {{--
--}} @endif
{{-- Form section --}}

General Information

Configure your field settings for your form field.

@if($showform) @else
{{ isset($record) ? $record->title : '' }}
@endif
@if($showform) @else
{{ isset($record) ? $record->label : '' }}
@endif
@if($showform) @else
{{ isset($record) ? $record->contentType->name : '' }}
@endif
@if($showform) @if(!$admin && $create) custfield @endif @else
{{ isset($record) ? $record->scriptid : '' }}
@endif
@if($showform) @else @if(isset($record) && ($record->content_type == '13' || $record->content_type == '19' || $record->content_type == '15')) @php if($record->content_type == '13' || $record->content_type == '15'){ $referenceTitle = $listRecords->where('id', $record->selectedreferenceid)->first(); } if($record->content_type == '19'){ $referenceTitle = $recordTypes->where('id', $record->selectedreferenceid)->first(); } @endphp @if($referenceTitle)
{{ $referenceTitle->title }}
@endif @endif @endif

Optional: limit selectable records to rows matching a boolean or list field on the referenced record type.

@if($showform)
Value
List values (multi-select)
@else @if(isset($record) && $record->content_type == '19' && !empty($record->record_filter)) @php $rf = $record->record_filter; $fieldScriptid = $rf['field_scriptid'] ?? ''; $fieldLabel = \Illuminate\Support\Str::title(str_replace('_', ' ', $fieldScriptid)); @endphp
Field: {{ $fieldLabel }} @if(($rf['field_type'] ?? '') === 'boolean') @php $boolV = $rf['values'][0] ?? null; @endphp — {{ ($boolV === true || $boolV === 1 || $boolV === '1') ? 'True' : 'False' }} @elseif(($rf['field_type'] ?? '') === 'list') @php $listKey = $rf['list_key'] ?? null; $listLabels = []; if ($listKey && !empty($rf['values']) && is_array($rf['values'])) { foreach ($rf['values'] as $ref) { $li = \Domain\ListItems\Models\ListItem::query() ->where('list_key', $listKey) ->where(function ($q) use ($ref) { $q->where('refid', $ref)->orWhere('refid', (string) $ref); }) ->first(); $listLabels[] = $li ? $li->value : (string) $ref; } } elseif (!empty($rf['values']) && is_array($rf['values'])) { $listLabels = array_map('strval', $rf['values']); } @endphp — {{ implode(', ', $listLabels) }} @endif
@elseif(isset($record) && $record->content_type == '19')
No static filter
@endif @endif
{{--
--}}
{{-- Form section --}}

Record Types

Choose the record types you'd like this field applied to.

@foreach($recordTypes as $option)
@endforeach @if($showform)
@endif
{{-- Form section: Search Settings --}} @if($showSearchSettings)

Search Settings

Configure how this field participates in site-wide search.

Enable indexing to include this field in global search. Embedding is optional (cap 5). Weight adjusts relevance.
@endif {{-- Form section --}}

Validation Rules

Apply optional validation rules to your form field.

@if($showform) @else @endif
@if($showform) @else
{{ isset($record) ? $record->minvalue : '' }}
@endif
@if($showform) @else
{{ isset($record) ? $record->maxvalue : '' }}
@endif
{{-- Sourcing (hidden for now) --}} {{-- --}}
@if($showform)
@if(isset($record)) Cancel @else Cancel @endif @if(isset($record)) @if($admin || !$admin && $record->id > 0) @if($create) @else @endif @if(!isset($record)) @endif @endif @else @if($create) @else @endif @if(!isset($record)) @endif @endif
@else
{{-- @if(!$admin && $record->id < 0) Customize @else --}} @if($admin || !$admin && $record->id > 0) Edit @endif
@endif