virtualFields - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

The virtual search fields are stored in the Configuration widget so that they can be shared with the Keyword and Context widget. The Keywords widget displays and handles the virtual fields in the advanced search form. The context widget displays the active virtual fields.

Example of a virtual field configuration:

<div class="AFSWidget" title="Configuration">
<script type="application/json">
{
"afsDefaults": {
"afs:service": 1234,
"afs:status": "alpha"
},
"click": {
"enabled": false
} ,
"virtualFields": [
{
"name": "title",
"placeholder": "Search in the title",
"label" : "Title"
},
{
"name": "content",
"placeholder": "Search in content",
"label" : "Content"
}
]
}
</script>
</div>