Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Actualize fields in a list with Ajax without refreshing all list

  • peli_m
  • peli_m
  • OFFLINE
  • Posts: 54
  • Thanks: 6
  • Karma: 0
8 years 3 months ago #283514 by peli_m
Hello,

In a list, is there a way to actualize a query or code field after update a text-area field in the same record with Ajax, without refreshing the entire list? The easiest example: I would like to insert a number in a text area and obtain the double in a code field without refresh all the list.

Thak you

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283525 by krileon
No, not yet. Regular Code fields do not support Update On, but CB Core Fields Ajax will be taking over that feature in a later release allowing it to work with any fieldtype so at that point it will be doable. Only Code Select fieldtypes support Update On (same with Query Select fieldtypes).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • peli_m
  • peli_m
  • OFFLINE
  • Posts: 54
  • Thanks: 6
  • Karma: 0
8 years 3 months ago - 8 years 3 months ago #283535 by peli_m
I think OnAfterUserUpdate will trigger, but no specific action in AutoActions to actualize other field? Is it possible to insert code in validation?
Last edit: 8 years 3 months ago by peli_m.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283558 by krileon
That trigger is fired after the profile is updated. That won't help you in what you're wanting. You're wanting a fields value to change via ajax based off the value of another field. That requires specific PHP ajax endpoints to be implemented to do that.

The best I can suggest is just use jQuery added to the page using CB Auto Actions to do the math since all you're needing is some simple math that JS can accomplish.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • peli_m
  • peli_m
  • OFFLINE
  • Posts: 54
  • Thanks: 6
  • Karma: 0
8 years 2 months ago #284710 by peli_m
I'll wait for a future version that incorporates this feature.
Thank you very much again.
Kind regards,
J. Martinez

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum