Skip to content

fix: use USER_ENTERED for proper value type handling#23

Open
dmitry-simple-it wants to merge 1 commit into
isaacphi:mainfrom
dmitry-simple-it:fix/user-entered-value-input
Open

fix: use USER_ENTERED for proper value type handling#23
dmitry-simple-it wants to merge 1 commit into
isaacphi:mainfrom
dmitry-simple-it:fix/user-entered-value-input

Conversation

@dmitry-simple-it

Copy link
Copy Markdown

Summary

  • Change valueInputOption from RAW to USER_ENTERED in gsheets_update_cell
  • Update value parameter description to reflect supported types

Problem

When using gsheets_update_cell, values are stored as literal strings because of valueInputOption: "RAW". This causes:

  • Boolean values (TRUE/FALSE) to be stored as text with leading apostrophe ('TRUE), breaking checkboxes
  • Formulas (=A1+B1) to be stored as text instead of being evaluated
  • Numbers and dates to be stored as text instead of their proper types

Solution

Change valueInputOption to "USER_ENTERED", which makes Google Sheets interpret values as if typed by a user:

Value With RAW With USER_ENTERED
TRUE 'TRUE (text) TRUE (boolean) ✓
=A1+B1 '=A1+B1 (text) Formula result ✓
123 123 (text) 123 (number) ✓
2024-01-15 text Date ✓

Test plan

  • Tested with TRUE/FALSE - checkboxes now work correctly
  • Tested with dates - recognized as dates
  • Tested with formulas - evaluated correctly

Related

🤖 Generated with Claude Code

…e_cell

Change valueInputOption from RAW to USER_ENTERED to fix:
- Boolean values (TRUE/FALSE) being stored as text with leading apostrophe
- Formulas not being evaluated
- Numbers and dates not being recognized

Fixes isaacphi#22
Also addresses the issue described in PR isaacphi#21

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gsheets_update_cell: Boolean values (TRUE/FALSE) are stored as text with leading apostrophe

1 participant