Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Preloading values not reflected in front end webapp checkbox

Avatar

Avatar
Validate 1
Level 1
DAVID-GARCIA
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
DAVID-GARCIA
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
DAVID-GARCIA
Level 1

13-01-2021

Has anyone had a similar problem when preloading a record on a webapp, the context shows the correct value, but this is not reflected in the html object? I am using the new page activity: DAVID-GARCIA_2-1610550485724.png

 

 
_debug shows ctx context preloaded with flag correctly
 
DAVID-GARCIA_0-1610550398665.png

 

 
On the webapp frontend the checkbox is not checked.....
 
DAVID-GARCIA_1-1610550398666.png

 

Input form syntax:
 
<input id="uni_news" type="checkbox" checked="checked" data-nl-bindto="xpath" data-nl-xpath="@universityNews" />
preload webapp

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

310 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

310 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile
_Manoj_Kumar
MVP

13-01-2021

Hello @DAVID-GARCIA ,

 

Yes, I was facing a similar issue.

 

I solved it by updating the checkbox value with javascript

 

Here is a sample code

<% if(ctx.vars.value=="1"){ %>
<Script>
document.getElementById("checkbox").checked = true;
</script>
<% }% >

 

Thanks,

Manoj

 

Avatar

Avatar
Validate 1
Level 1
DAVID-GARCIA
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
DAVID-GARCIA
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
DAVID-GARCIA
Level 1

13-01-2021

Hi Manoj, I can't seem to reply to you, I am also inclined to use that approach as I had spent the last 24 hours troubleshooting the issue to no avail, does that mean this is an actual bug?