Menu
SuiteCRM for developers is a guide to developing with SuiteCRM. It covers creating customisations, packages and third party integrations.
I possess a logic lift that shifts a field's value, but in purchase to notice the switch I require to refresh the whole page. I desire it to refresh the field in true time.
So I'm trying to accomplish something like this(https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/21178-refresh-sub-panel-values-when-another-sub-panel-is-updated#75194)
But rather of reloading a entire subpanel through the controller.php I'meters trying to discover a way to refresh a one field.
Can anyone advise what technique needs to be used to reload a field?
For illustration to refill a subpanel it's
.
showSubPanel('SUBPANELNAME',null,correct);
.
But what is the JS technique that reload a one field?
Robert SinclairRobert Sinclair
1 Response
I couldn't find any built-in features in suiteCRM that perform it, invested a great deal of time going through the chrome debugger, but nothing proved helpful.
Here's a video clip that points out what'h occurring and the actual program code examplehttps://youtu.end up being/ebuwWZoSYCk
You require to get the fresh status from the back-end after that revise the field inside the controller.php with:
The whole controller.php file example can be here, it all makes sense if you watch the 5 minute video clip:
Robert SinclairRobert Sinclair
Not really the solution you're also looking for? Browse other questions tagged sugarcrmsuitecrm or inquire your very own query.
So I have a custom made field which can be generally a Bool field that covers and displays a dropdown. This is usually not simply one custom made field. I produced a Field Kind like Dynamicenum or Deal with so i can take care of it via Studio. Until today i had my js code (to hide and display) inside the
EditView.tpl
.![Documents Documents](https://suitecrm.com/suitecrm/media/kunena/attachments/32330/Field_A_Parent-2.png)
What is usually the right way to include JS code to my field?
Thanks in progress
Velrest
Celebrity2,32155 silver badges2323 silver precious metal badges3636 bronze badges
VelrestVelrest
1 Response
A new.if you desire to utilize it on field whenever it obtain added to any look at of any module then include your JS document in field description. Route will end up being like this:custom made/include/SugarFields/Fields//EditView.tpland program code will become like using:
B.if you need to apply js code in any particular module in specific view after that use following sample method:
- Include a benchmark to the javascript document which will become needed for occasion binding.Path:custom/modules/Contacts/metadata/editviewdefs.php
Program code:
- Add the javascript document you desire to consist of into the place you referenced over(custom/quests/Contacts/js/editview.js).
- Fast Repair, then very difficult refresh your browser. All Done !
![Documents Documents](https://suitecrm.com/suitecrm/media/kunena/attachments/26377/ObjAch_vueList.png)
2,32155 yellow metal badges2323 silver precious metal badges3636 bronze badges