Need to put a more information annotation under or above Location field on Incident form

SNOW46
Tera Contributor

Hello All,

I want to put a annotation message or help information above or below of Location field in Incident form for the users to let them know if the current location is not their then they can reach out to IT Support to update their exact location.

This is how we can put in Record Producer but I want the same in Native Ui Incident form as well.

find_real_file.png

Can anyone help me out on this,

 

Thanks

13 REPLIES 13

okay which is strange I believe. Do one thing put a alert and debug if client script itself is getting executed or not.

So put a alert in first line before line number 4 in your client script shown above as below:

function onLoad() {
   //Type appropriate comment here, and begin script below
	alert('Script executing');
   g_form.showFieldMsg('caller_id','Your messgae','info');
}

Screenshot attached for reference:

find_real_file.png

Also try explicitly checking for new record as below if above does not works and see if you get it through or not:

function onLoad() {
    //Type appropriate comment here, and begin script below
    if (g_form.isNewRecord()) {
        alert('Script executing');
        g_form.showFieldMsg('caller_id', 'Your messgae', 'info');
    }

}

For me both the scripts works.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

SNOW46
Tera Contributor

Hi Shloke,

I put the alert in the existing script and tried clicking Create New Incident form the alert is getting pop-up but the message is not coming up once I clicked on okay.

 find_real_file.png

Thanks

Do one thing try showing the Field Message for some other field say Caller(caller_id) and see if message is coming or not.

This way we can eliminate one scenario if there is an issue with this script or something else.

Also remove the annotation in yellow and then try with your script again.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

shloke04
Kilo Patron

Also would like to add you can add a Help Text on the Field you need by Right click on the Field and then select Configure--Label

Then add the Help text you need as shown below:

find_real_file.png

Result:

So when some one hovers on the field the message will be displayed.

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke