Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Support
Quickbase University
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Home
Communities
All Posts
All Communities
My Communities
Getting Started
Events
Qrew Groups
Discussions
View Only
Community Home
Discussion
64.8K
Library
549
Blogs
177
Events
0
Members
46.7K
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
If Checkbox Statements is not Working
Sam Krausz
06-20-2018 16:52
This is NOT getting changed from False to True using the following: var text NewToggle = If([Rechecked]=false,"true","false"); ...
QuickBaseCoach Dev./Training
06-20-2018 17:19
I suggest either this &key=" & URLEncode([Product #]) or else &rid=" & [Record ID#] ...
Sam Krausz
06-20-2018 17:24
Thanks for the reply Still the same issue var bool NewToggle = If([Rechecked]=false,true,false); ...
QuickBaseCoach Dev./Training
06-20-2018 17:28
There is a space that does not belong after your = sign & "&_fid_1317= " & $NewToggle;
Sam Krausz
06-20-2018 17:30
Yea Yes, you know everything.......... Thanks for the quick help I learn something today
QuickBaseCoach Dev./Training
06-20-2018 17:31
You are building a URL, so there are no spaces allowed in a URL ....
Sam Krausz
06-20-2018 17:33
Yes Yes Thanks
1.
If Checkbox Statements is not Working
1
Like
Sam Krausz
Posted 06-20-2018 16:52
Reply
Reply Privately
Options Dropdown
This is NOT getting changed from False to True using the following:
var text NewToggle = If([Rechecked]=false,"true","false");
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&key=" & [Product #]
& "&_fid_1317= " & $NewToggle
Why?
2.
RE: If Checkbox Statements is not Working
0
Like
QuickBaseCoach Dev./Training
Posted 06-20-2018 17:19
Reply
Reply Privately
Options Dropdown
I suggest either this
&key=" & URLEncode([Product #])
or else
&rid=" & [Record ID#]
to indicate which record is to be edited.
Maybe there are some spaces or characters in the [product #] that the URL does not like.
3.
RE: If Checkbox Statements is not Working
0
Like
Sam Krausz
Posted 06-20-2018 17:24
Reply
Reply Privately
Options Dropdown
Thanks for the reply
Still the same issue
var bool NewToggle = If([Rechecked]=false,true,false);
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&key=" & URLEncode([Product #])
& "&_fid_1317= " & $NewToggle;
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);
4.
RE: If Checkbox Statements is not Working
0
Like
QuickBaseCoach Dev./Training
Posted 06-20-2018 17:28
Reply
Reply Privately
Options Dropdown
There is a space that does not belong after your = sign
& "&_fid_1317= " & $NewToggle;
5.
RE: If Checkbox Statements is not Working
0
Like
Sam Krausz
Posted 06-20-2018 17:30
Reply
Reply Privately
Options Dropdown
Yea Yes, you know everything..........
Thanks for the quick help
I learn something today
6.
RE: If Checkbox Statements is not Working
0
Like
QuickBaseCoach Dev./Training
Posted 06-20-2018 17:31
Reply
Reply Privately
Options Dropdown
You are building a URL, so there are no spaces allowed in a URL ....
7.
RE: If Checkbox Statements is not Working
0
Like
Sam Krausz
Posted 06-20-2018 17:33
Reply
Reply Privately
Options Dropdown
Yes Yes
Thanks
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Skip Navigation Links
Terms and Conditions
Copyright . All rights reserved.
Powered by Higher Logic