You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\PhpOffice\PhpSpreadsheet\Cell\DataValidation())
->setType(\PhpOffice\PhpSpreadsheet\Cell
DataValidation::TYPE_LIST)
->setErrorStyle(\PhpOffice\PhpSpreadsheet\Cell
DataValidation::STYLE_INFORMATION)
->setAllowBlank(false)->setShowInputMessage(true)->
setShowErrorMessage(true)->setShowDropDown(true)
->setErrorTitle('Input error')->setError('Value is
not in list.')
->setPromptTitle('Pick from list')->setPrompt('Please
pick a value from the drop-down list.')
->setFormula1('"Entry Level,Leadership"')
);
i can't use array in setFormula1.
How to use array in setFormula1 can you guide me in php?
On Sat, May 20, 2023 at 9:32 AM Henis Chodvadiya @.***>
wrote:
Thank you
On Sat, May 20, 2023 at 9:31 AM Henis Chodvadiya < @.***> wrote:
Got it.
On Fri, May 5, 2023 at 9:20 PM oleibman @.***> wrote:
Closing, because, as far as I can tell, the code above works correctly. It is a little difficult to read, so I will rearrange it slightly to show the code I used, but all of the code involving DataValidation is unchanged:
$dataValidation = newDataValidation();
$dataValidation
->setType(DataValidation::TYPE_LIST)
->setErrorStyle(DataValidation::STYLE_INFORMATION)
->setAllowBlank(false)
->setShowInputMessage(true)
->setShowErrorMessage(true)
->setShowDropDown(true)
->setErrorTitle('Input error')
->setError('Value is not in list.')
->setPromptTitle('Pick from list')
->setPrompt('Please pick a value from the drop-down list.')
->setFormula1('"Entry Level,Leadership"');
$r_cell_address = 'A1';
$sheet->setDataValidation($r_cell_address, $dataValidation);
\PhpOffice\PhpSpreadsheet\Cell\DataValidation())
->setType(\PhpOffice\PhpSpreadsheet\Cell
DataValidation::TYPE_LIST)
->setErrorStyle(\PhpOffice\PhpSpreadsheet\Cell
DataValidation::STYLE_INFORMATION)
->setAllowBlank(false)->setShowInputMessage(true)->
setShowErrorMessage(true)->setShowDropDown(true)
->setErrorTitle('Input error')->setError('Value is
not in list.')
->setPromptTitle('Pick from list')->setPrompt('Please
pick a value from the drop-down list.')
->setFormula1('"Entry Level,Leadership"')
);
i can't use array in setFormula1.
How to use array in setFormula1 can you guide me in php?
On Sat, May 20, 2023 at 9:32 AM Henis Chodvadiya @.***>
wrote:
Originally posted by @HenisPatel in #3550 (comment)
The text was updated successfully, but these errors were encountered: