Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

203
Visualizações
Is there an event listener when I open a form element in the Formeo formbuilder?

I am currently using the formBuilder. This also works very well so far. In the new Formeo form builder version from developer Kevin Chappell, there is a condition function that I would like to use. Hence the change.

In the current FormBuilder there is an event to query when an element has been opened with the "edit icon":

onOpenFieldEdit

Callback that executes when a field edit window is opened. provides edit panel DOM node

var options = {
       onOpenFieldEdit: function (editPanel) {
           alert ('a field edit panel was opened');
         },
     };
$ (container) .formBuilder (options);

I miss this function within the Formeo formBuilder. There is "only" one event there

onRender

Fires when an element is rendered

events: {
  onRender: element => {
    console.log (`Id rendered" $ {element.id} "`)
  },
},

This event is also executed when the page is initially loaded. If there are already 10 elements in the form, there are 10 rendered events.

Unfortunately, I cannot read further information such as field type in Formeo's DOM, so I need to do a little workaround.

const formeoUpdatedThrottled = throttle (
  () => {
    events.opts.onUpdate ({
      timeStamp: window.performance.now (),
      type: EVENT_FORMEO_UPDATED,
      detail: components.formData,
    })
    render (components.formData)
  },
  ANIMATION_SPEED_FAST,
  {
    leading: false,
  }
)

export const render = function renderFields (formData) {
  const dataLength = Object.keys(formData.fields).length
  let i
  if (dataLength> 0) {
    i = 0
    while (i <dataLength) {
      console.log(formData.fields [Object.keys (formData.fields) [i]]. id, formData.fields [Object.keys (formData.fields) [i]]. meta.id);
      i ++
    }
  }
}

Not particularly nice because the render() function is called 2-3 times (No pattern seen so far). Regardless of the number of form elements.

Maybe someone of you knows the "normal" onOpenFieldEdit event?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda