# Example Parametric Cardinal Placement Rule

The following parametric cardinal placement rule inserts the value `spinach` at the top of a query for the values of the field `VEGETABLE` that includes the terms carrot or broccoli.

    #DREREFERENCE automation_cardinal_placement
    #DRETITLE cardinal placement 1
    #DREFIELD QMSTYPE="8"
    #DREFIELD QMSAGENTBOOL="carrot OR broccoli"
    #DREFIELD QMSFIELDNAME="VEGETABLE"
    #DREFIELD QMSFIELDVALUE="spinach"
    #DREFIELD QMSFIELDTEXT=""
    #DREFIELD QMSVALUE="1"
    #DRECONTENT
    carrot broccoli
    #DREENDDOC

For example, this rule inserts the value `spinach` at the top of the list of values in the following query:

    action=GetQueryTagValues&Text=broccoli&FieldName=VEGETABLE

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm