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

Preload activity for web app not working for Boolean fields added to recepient

Avatar

Avatar
Validate 1
Level 2
Prasanna_Soni
Level 2

Like

1 like

Total Posts

67 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Affirm 1
View profile

Avatar
Validate 1
Level 2
Prasanna_Soni
Level 2

Like

1 like

Total Posts

67 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Affirm 1
View profile
Prasanna_Soni
Level 2

20-05-2021

Team, I have extended recipient schema and added couple Boolean fields and text fields. In webpage i am able to map that fields. Preload acivity is able to load the Text fields from Recipient however for Boolean fields, preload acivity is not working. Now value for Boolen fields could be problem as i see i gave true and false. That i dont know and might be changing to 1 or 0 might solve the problem. Anyone else faced the similar situation? 

 

<div class="control"><input name="radio-stacked" class="radio" id="typeOfJournalistMedia" required="true" type="radio" checked="checked" value="" data-nl-bindto="xpath" data-nl-label="Media" data-nl-xpath="@media" data-nl-ismandatory="false" data-nl-uncheckedvalue="false" /> <label class="form-check-label" for="typeOfJournalistMedia">Journalist/Media</label> <input name="radio-stacked" class="radio" id="typeOfJournalistNonMedia" required="" type="radio" checked="checked" value="true" data-nl-bindto="xpath" data-nl-label="Non Media" data-nl-xpath="@nonmedia" data-nl-ismandatory="false" data-nl-uncheckedvalue="false" /> <label class="form-check-label" for="typeOfJournalistNonMedia">Non-Media</label></div>

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

309 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

309 posts

Correct Reply

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

20-05-2021

Hello @Prasanna_Soni 

 

You can use the javascript to look at the boolean value and then check/uncheck the radio box.

 

<%
if(media==1 || media==true){
 %>
<script>
 document.getElementById("typeOfHournalistMedia").checked = true;
</script>
<%
}
%>

Avatar

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

140 likes

Total Posts

856 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

140 likes

Total Posts

856 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile
Sukrity_Wadhwa
Employee

02-06-2021

Hi @Prasanna_Soni,

Was the given solution helpful to resolve your query or do you still need more help here? Do let us know.

Thanks!