How to set values ​​received from other widgets in a portal form widget

bonsai
Mega Sage

I want to receive values ​​from other widgets in the portal and set them in fields of a record displayed in the "Form" widget.

I tried cloning and editing the "Form" widget, but the following error occurred in the client controller and I couldn't save it:

"Could not save record because of a compile error: JavaScript parse error at line (25) column (25) problem = missing name after . operator (<refname>; line 25)"

Line 25 contains the following:
"queryParams.delete("id");queryParams.delete("table"); //removing id,table attributes in platform -> portal URL conversion."

I tried changing the line break to just "queryParams.delete("id");" but I still got the same error.

I don't know what the cause is...

I would like to resolve the error, but my original goal is to receive values ​​from other widgets and set them in fields of the record in the Form widget.

Is there a way to do this other than editing the Form widget?

1 ACCEPTED SOLUTION

Hi @bonsai 

have you try to open widget in widget editor using related link and save the widget 

KrishnaMohan_0-1756960822835.png

KrishnaMohan_1-1756960998935.png



If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan

 

View solution in original post

3 REPLIES 3

KrishnaMohan
Giga Sage

Hi @bonsai 
If possible, can you provide client controller screenshots

Regards,
Krishnamohan

This is a clone of the widget with sys_id "fd1f4ec347730200ba13a5554ee490c0".

 

bonsai_0-1756958572665.png

 

Hi @bonsai 

have you try to open widget in widget editor using related link and save the widget 

KrishnaMohan_0-1756960822835.png

KrishnaMohan_1-1756960998935.png



If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan