10 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 Book for SEBLOD
10 years ago
2
Level 1

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

10 years ago
1
Level 2

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

cyril

10 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. 

10 years ago
6
Level 1

Ok I found it:


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

10 years ago
5
Level 2

It's more easy ;) 

10 years ago
3
Level 3

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

10 years ago
2
Level 4

Yep, with pleasure.

thanks

cyril

10 years ago
1
Level 5

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

10 years ago
0
Level 6

Me miss some PM feature here :)

yes, please call us to our standard

cyril

10 years ago
0
Level 3

Thanks anyway, your idea was interessting too!

Get a Book for SEBLOD