PHPMaker 2023/2024
the filter selection affects the field selection when adding or editing.
int field with selection 1 - One, 2 - Two
if in list Page Filter column is not checked all working good.
if in list Page Filter column is checked
then i add field is select 1 - One also in edit page.
Filter selection affects the field selection when adding or editing (v2023)
-
- User
- Posts: 79
Filter selection affects the field selection when adding or editing (v2023)
-
- User
- Posts: 11905
If you want to keep Filter option is enabled under Fields setup -> List column, and you don't want option 1 is selected when Add page is loaded, then you may simply put this following code in Startup Script under Add Page:
$("#x_test_field").val(""); // initial value always blank
-
- User
- Posts: 79
Okay, on the add page we get an empty field. This is good.
But if we click "Edit" on the row with a blank field, we get option 1.
ok, let’s add our script to Startup Script under “Edit Page”.
We got: if we edit a row with an empty field - good
if we edit a row with field 1, 2 or 3 selected - we will get an empty field - not good