Forums

hiding textfield

kraadde 3d ago

I have a text field (varchar255) set as follows:

{item:title} {images:#}

{item:title} {images:#}

The goal is to have the field ruckant hidden when there is an empty ruckm and shown when it is not.

It does not work as it is always visible. NB. variable ruckm is correctly shown in the debugger  How to solve?

Max_admin 3d ago
Answer

What is "ruckm" ? is this another field ?

if it is another field then you need the trigger in that field, and a listener in the Target field

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 3d ago
1 Likes

Thanks I solved with php :

if (empty($this->data['bes_text'])) {
   return 'yes';
} else {
    return 'no';
}

and event switcher where I placed the field ruckant inside the switcher option yes/no.

I thoght that an easier solution with event trigger and event would be possible. However naw it works.

Max_admin 3d ago

But the event switcher works on page load or page submit only, not on live changes.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 3d ago

That is why i was lost.. Thanks

You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger