Skip to content

CellLink not generated for form checkboxes #2113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
BZValoche opened this issue Apr 7, 2025 · 3 comments
Closed
1 task done

CellLink not generated for form checkboxes #2113

BZValoche opened this issue Apr 7, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@BZValoche
Copy link

Description

One should be able to link cellsd to checkboxes. The library explicitely only allows the CellLink property on scrollbars and spin buttons.

Additional context

No response

Validations

  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.
@BZValoche
Copy link
Author

In vml.go on line 743, you might want to add the case for checkboxes.

@xuri xuri closed this as completed in f85dae6 Apr 11, 2025
@xuri
Copy link
Member

xuri commented Apr 11, 2025

Thanks for your issue. I added support for set cell link for check box, note that if a cell link is set for a checkbox form control, Excelize will not assign a value to the linked cell when the checkbox is checked. To reflect the checkbox state, please use the SetCellValue function to manually set the linked cell's value to true. Please upgrade to the master branch code by go get github.com/xuri/excelize/v2@master, and this feature will be released on the next version.

@xuri xuri added the enhancement New feature or request label Apr 11, 2025
@BZValoche
Copy link
Author

Thansk your quickly taking it into account

@xuri xuri moved this to Features in Excelize v2.9.1 Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Features
Development

No branches or pull requests

2 participants