Please note I am trying to use it on buttons where the records were entered "manually" on each button on the layout
I can't picture what you mean by that.
But if you give a button this conditional format expression:
$$ButtonA = "Clicked"
And your button's script includes these steps:
Set Variable [$$ButtonA ; value: "Clicked" ]
You should see the button change color when clicked.
I tried but for the portals, all rows have the same format as if they were all selected at the same time.
Am I missing a script step?
You'll need a slightly different approach. Say that you have a primary key field in the portal's table that auto-enters a serial number or Get ( UUID ) text in order to uniquely identify each portal record.
Then your script can be:
Set Variable [ $$Button ; value: PortalTable::PrimaryKey ]
And your conditional format expression would be:
$$Button = PortalTable::PrimaryKey
Ok, I understand.
Thanks it works. Now my issue is that UNLESS I click on a button the conditional formatting does not apply.
How can I have the first field displayed automatically ? / I was able to find an answer to that question (added a go to portal row step)
How can I change the highlighted box around the portal row (View screenshot)?
Now my issue is that UNLESS I click on a button the conditional formatting does not apply.
Which is what I understood that you wanted:
I am trying to use the conditional formatting trick to have the button clicked have a different color than the others but it is not working.
And can you show what your layout looks like in layout mode? I can't tell what objects on your layout are inside the portal.
If you have this setup the way that I think you have, with the field in the portal row set up as a button, the script for that button could include a commit records step at the end of the script to keep the portal row from being selected and thus highlighted like this.