11 years ago
10
Topic

Hi

is there a way to dynamically change the return message of a FORM from a code field please?

for example, given the result of a test in the code field I whish I could modify the return message

thanks


cyril

Get a VIP membership
11 years ago
2
Level 1

just flush the enqueueMessage and set a new message and the queue

11 years ago
1
Level 2

Thanks, can you give me the rough syntaxt in php please?

cyril

11 years ago
0
Level 3

In french it's more easy for me and you are french ;) 

En faite il faut juste mettre un nouveau message dans la queue : 

JFactory::getApplication()->enqueueMessage('Your Message', 'type');
type : 

  • warning
  • notice
  • error
  • message
Il faut essayer normalement c'est suffisant. 

11 years ago
6
Level 1

Ok I found it:


$config["message"]="whatever we want!";

11 years ago
5
Level 2

It's more easy ;) 

11 years ago
3
Level 3

It's possible to contact you in private for echange of seblod and solr please. 

11 years ago
2
Level 4

Yep, with pleasure.

thanks

cyril

11 years ago
1
Level 5

if i use the phone number in your site pulsar-informatique, it's ok ? 

11 years ago
0
Level 6

Me miss some PM feature here :)

yes, please call us to our standard

cyril

11 years ago
0
Level 3

Thanks anyway, your idea was interessting too!

Get a Book for SEBLOD