full Calendar - display data

Asked

Viewed 32 times

1

I’m having trouble displaying information. Follow the code:

This is where you should show it:

<div class="form-group row">
  <label class="col-sm-2 col-form-label">Email do cliente</label>
  <div class="col-sm-10">
    <input type="varchar" maxlenght="80" name="email" class="form-control" id="email" placeholder="E-mail do cliente" />
  </div>
</div>

The email is registered through a form and everything is working out (related to saving in the database and making other changes), the problem is that when I want to detail the event this information does not appear.

    eventClick: function (info) {
        info.jsEvent.preventDefault(); // don't let the browser navigate
        console.log(info.event);
        $('#visualizar #id').text(info.event.id);
        $('#visualizar #id').val(info.event.id);
        $('#visualizar #title').text(info.event.title);
        $('#visualizar #title').val(info.event.title);
        $('#visualizar #start').text(info.event.start.toLocaleString());
        $('#visualizar #start').val(info.event.start.toLocaleString());
        $('#visualizar #end').text(info.event.end.toLocaleString());
        $('#visualizar #end').val(info.event.end.toLocaleString());
        $('#visualizar #cliente').text(info.event.extendedProps.cliente);
        $('#visualizar #cliente').val( info.event.extendedProps.cliente);
        $('#visualizar #email').text(info.event.extendedProps.email);
        $('#visualizar #email').val( info.event.extendedProps.email);**
        $('#visualizar #endereco').text(info.event.extendedProps.endereco);
        $('#visualizar #endereco').val( info.event.extendedProps.endereco);
        $('#visualizar').modal('show');
    },

Other data such as name, address that are also recorded by the form are being displayed normally.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.