Autofill does not fill a non visible field?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
robertweij
User
Posts: 4

Autofill does not fill a non visible field?

Post by robertweij »

Autofill does not fill a non visible field in Add Page? (v2017)


mobhar
User
Posts: 11700

Post by mobhar »

Indeed. Auto fill will work properly only for the field that setup visible as true. In other words, you cannot use Auto fill to fill the hidden field(s).


riverman
User
Posts: 158
Location: Stockholm/Sweden

Post by riverman »

What you can do is to hide the field with JQuery and then AutoFill should work.

Ex in demo project:
Server Events -> Client Scripts -> Add/Copy Page -> Startup Script

$("#r_ShipName").hide();

This will hide field ShipName (and label) in order table at add/copy page. If you make an autofill that fills ShipName with something it will be hidden in Add page, but shown in View.

If you want to hide the field at other pages than Add/Copy; add the same code to Server Events -> Client Scripts -> Delete/View/Edit Page

I hope this will help you!


robertweij
User
Posts: 4

Post by robertweij »

Very clear help Thanx!


Post Reply