How to create a pop up window from a scripted relationship Related List

Su522
Kilo Sage

Is there a way to create a pop-up window from a scripted relationship Related List?

See screenshot

Use case:

If an end user tries to change the "State" from the scripted relationship Related List > a pop-up window should appear with a message. 

 

Help is greatly appreciated!

Thank you,

3 REPLIES 3

PVJShareKnowled
Tera Guru

@Su522  You need to write a "on change" client script on "state" field in "Product order" table and you can use, g_form.addInfoMessage('Your message');

If this input helped you, please give a thumbs up. It encourages me to answer more questions and support our community.

Regards,


Priyanka Jeganathan

@PVJShareKnowled 

I have done that- I have on onChange Client Script that works for the Product Order form.

I also have an onCellEdit Client Script that works for the List View of the Product Order

Neither of those work for the scripted relationship Related List. I think the reason why is that is on the Customer Order table.

See screenshot

Thoughts?

ssellmeyer
Tera Guru

Try:

Create an onCellEdit Client Script with a GlideModal popup

Create a Scripted Relationship for the same table