I am looking to make the app variable in the config parameter dynamic by implementing radio buttons with values. I am curious about how to pass the value based on user preference.
If the selection is changed from selection1 to selection2, it should auto-refresh.
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../../resources/assets/client/client.css">
<link rel="stylesheet" href="sense-search.min.css"/>
</head>
<input type="radio" name = "Product" value = "987-34587a8a5e13" /> abc
<input type="radio" name = "Product" value = "786-2fad2cbd8249" /> def
<body style="width: 100%; margin: 20px auto; font-family: arial;">
<h2></h2>
<br>
<sense-search-input id="myInput" mode="visualizations"></sense-search-input>
<sense-search-results id="myResults"></sense-search-results>
<script type="text/javascript"
src="../../resources/assets/external/requirejs/require.js"></script>
<script type="text/javascript" src="sense-search.js"></script>
<script type="text/javascript">
//var str ;
//$("input[name=Product]").click(function(){
//alert("selected");
//});
var config = {
host: "xyz",
prefix: "/pnb/",
isSecure: true,
app: '987-34587a8a5e13',
port: 443
}