Welcome to the LimeSurvey Community Forum

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

Which API can I change the fields (RESOLVIDO)

  • avelar
  • avelar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188616 by avelar
Which API can I change the fields was created by avelar
Type:
Date Start, expiration date.

Table: prefix_surveys
` startdate` data e hora padrão NULL,,
`expira` data e hora padrão NULL,

Tks,
The topic has been locked.
  • avelar
  • avelar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188622 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.

Lime-years ahead

Online-surveys for every purse and purpose