Bienvenido, Invitado
Recordarme

TEMA:

Breezingform with a selectlist populated with names of specific joomla usergroup 8 meses 2 días antes #263970

  • Avatar de pjfroelofs Autor del tema
  • pjfroelofs
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 59
  • Gracias recibidas: 0
Dear support,

I'm still very happy.
But ran into a little issue:

When I test my breezingform in backend 'preview' mode.
All works perfect.

But when I make a contentbuilder view, and test the 'New' option in the frontend, then the username is not saved.

Backend breezingform->Manage records shows:

Submitted via backend preview:

Datum (jjjj-mm-dd)
Name: datum
Element ID: 3940
Type: Calendar 2021-09-22

Naam bewoner
Name: sl
Element ID: 3941
Type: Select List Auke Postma

User_id
Name: User_id
Element ID: 4007
Type: Text 324


When submitted via contentbuilder view -> NEW in frontend:
Datum (jjjj-mm-dd)
Name: datum
Element ID: 3940
Type: Calendar 2021-09-22

Naam bewoner
Name: sl
Element ID: null
Type: null

User_id
Name: User_id
Element ID: 4007
Type: Text 324


There is something wrong with the element ID and Type of the select list.

Please advise.
Patrick

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breezingform with a selectlist populated with names of specific joomla usergroup 8 meses 2 días antes #263972

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 2498
  • Karma: 2
  • Gracias recibidas: 135
Hi,

hmm, I just tested it on my server and I can see in view my username and user id.

could you please send me login information, backend link on email ma@evolutio.hr

I'll connect to your server and solve your problem.

Update:

could you please check, do you enabled the option 'edit by type', please see the image:

Image:


as you see in the image below my form which I created for you works well in view:

Image:



Regards,
Mirko
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Mirec.

Breezingform with a selectlist populated with names of specific joomla usergroup 8 meses 2 días antes #263988

  • Avatar de pjfroelofs Autor del tema
  • pjfroelofs
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 59
  • Gracias recibidas: 0
Dear Mirko

edit by type, was already selected. SO that is not the issue.


I've send you the details from the login.

Regards, Patrick

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breezingform with a selectlist populated with names of specific joomla usergroup 8 meses 2 días antes #263990

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 2498
  • Karma: 2
  • Gracias recibidas: 135
Hi,

ok, I'm received your email and I will take a look at it and back to you as soon as possible!

Regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breezingform with a selectlist populated with names of specific joomla usergroup 8 meses 1 día antes #264021

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 10135
  • Karma: 3
  • Gracias recibidas: 682
Hi,

this is solved now.

The code from before form pieces is disabled, and puted in your select list->List like:
<?php 
//Include BreezingForms Library
$db = JFactory::getDBO();//Get Database Object

//Create your own query here
$db->setQuery('Select name From jos_users Inner Join jos_user_usergroup_map On jos_users.id = jos_user_usergroup_map.user_id Where jos_user_usergroup_map.group_id =9 ORDER BY name ASC');

$result = $db->loadColumn(); //load the result from the query
$test = "";
for ($i = 0; $i < count($result); $i++)
{
$test .= "0;".$result[$i].";".$result[$i]."\n";
}
$value = $test; // this is actually for CB

return $test; // regular return to BF
?>
After that all worked as well

Let us know if you need anything else

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
  • 2
Moderadores: ForumSupport
Tiempo de carga de la página: 0.105 segundos