This topic is locked
[SOLVED]

 Autofill to hidden field

3/24/2020 12:25:06 PM
PHPRunner General questions
J
jacktonghk authorDevClub member

Does the autofill function work with hidden fields? For a table that I do not show all the fields in the add/edit page. Can I use autofill for the hidden fields? In autofill I can set value for the hidden field, but it does not work unless I show the field on the page. I know I can assign value to the hidden fields in the before update event. Thanks.

woodey2002 3/25/2020

..............

woodey2002 3/25/2020

If your project uses tabs, have you tried to place the field itself (not hidden) in tab and hide the tab rather than the field itself.
I have not tested it but it is worth a shot!
Here is the code to hide a tab
https://xlinesoft.com/phprunner/docs/hide.htm
Best of luck!

J

Sergey Kornilov admin 3/25/2020

How do you hide those fields? If you hide them through the code they still should be auto-filled and saved in the database.

J
jacktonghk authorDevClub member 3/26/2020



How do you hide those fields? If you hide them through the code they still should be auto-filled and saved in the database.


I unchecked the fields for the add/edit pages in the Fields Tab. In fact, in the autofill selection, I could see my target fields and mapped the lookup table fields. It just didn't work if the target fields are unchecked.

Sergey Kornilov admin 3/27/2020

Do not uncheck those fields via 'Choose fields'. Hide them using the code:

https://xlinesoft.com/phprunner/docs/hidefield.htm
There is a difference between the field that is on the page but is hidden and the field that doesn't even appear on the page.

J
jacktonghk authorDevClub member 3/27/2020



Do not uncheck those fields via 'Choose fields'. Hide them using the code:

https://xlinesoft.com/phprunner/docs/hidefield.htm
There is a difference between the field that is on the page but is hidden and the field that doesn't even appear on the page.


Finally I did hide fields in codes. Thanks.