Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

API Controle Remotor 2 - Campos Alterar Conteudo (RESOLVIDO)

  • avelar
  • avelar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago - 5 years 2 months ago #188599 by avelar
Qual API eu consigo alterar os campos?

Tipo: data Inicio, data expiração.

CREATE TABLE `prefix_surveys` (
`active` varchar(1) NOT NULL default 'N',
`expires` datetime default NULL,


Obrigado
Last edit: 5 years 2 months ago by avelar.
The topic has been locked.
  • avelar
  • avelar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #188624 by avelar
$idSurvey = 156696;

$parametros = [
'startdate',
'expires'
];

$datainicio = '2019-09-06 08:00:00';
$datafechar = '2019-09-07 18:00:00';

$datesSurvey = $limeSurvey->get_survey_properties($idSurvey, null);

$datesSurvey = $datainicio;
$datesSurvey = $datafechar;

$datesSurvey = $limeSurvey->set_survey_properties($idSurvey, $datesSurvey);
$datesSurvey = $limeSurvey->get_survey_properties($idSurvey, null);
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose