That does seem to work, except I’m running a transclude macro right after this and it seems like the transclude macro isn’t picking up the new fields. If I do the search again without changing anything, then the new fields are used.
<$button class="rounded border border-gray-300 border-solid px-2 py-1">
<$action-setfield keyword={{$:/temp/keyword}}/>
<$action-setfield category={{$:/temp/category}}/>
<$transclude $variable="getjson" url={{!!keyword}} category={{!!category}}/>
Search Icons
</$button>
It will get the last value of keyword and category, run the transclude stuff and display the results. If I click on the button again, then it will display the correct results.