Page 1 of 1

[Added] Breadcrumb Title

Posted: Wed Jul 21, 2021 10:13 pm
by admin
There's a new field in the nuBuilder Form: Breadcrumb Title. This field was also present in v.3.
Breadcrumb Title.png
It accepts a Text or SQL statement who's result can act as a descriptive title for this record. It can also contain Hash Variables.

If separated by |, the first part is used for existing records, the second part for new records.

Example: #not_title#|New

Explanation: Th Hash Cookie (an object on the form) #not_title# is shown on the form for existing records and "New" for new records.

Previously, one had to write a JS code like:
Breadcrumb Title.png

Code: Select all

if (nuIsNewRecord()) {
	nuSetTitle(nuTranslate('New'));
	nuEnable('sus_name'); 
}
else {
	nuSetTitle($('#sus_name').val());
}