provide help text below input fields (v11)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
abstract
User
Posts: 15
Location: India
Contact:

provide help text below input fields (v11)

Post by abstract »

I want to have a help text below each input fields in edit and add pages. How can I insert custom text below each input fields?

I am using PHPMaker v11.0.6 on Windows 10 with PHP 5.6.31 installed in iis


mobhar
User
Posts: 11703

Post by mobhar »

Inspect the selector id of related element in the form, and then use jQuery to add information text by using .append(), and put your code in "Startup Script" that belongs to "Add/Copy Page" and "Edit Page".

For example, you want to add additional text below the "CompanyName" field of "suppliers" table, then use this jQuery code:

$(document).ready(function() {
$("#el_suppliers_CompanyName").append("<div class='small' style='padding-top:3px;'>Additional text goes here ...</div>");
});


Post Reply