Which API can I change the fields (RESOLVIDO)

More
1 month 1 week ago #188615 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,

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 1 week ago #188620 by tpartner
set_survey_properties(string $sSessionKey, integer $iSurveyID, array $aSurveyData) - api.limesurvey.org/classes/remotecontrol...et_survey_properties

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: avelar

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #188623 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 following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!