web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How can I use this Jav...
Power Apps
Unanswered

How can I use this JavaScript code made for a website in my App?

(0) ShareShare
ReportReport
Posted on by 6

I came across this code to add a specific search base to a website: https://www.agrian.com/labelcenter/inst.cfm  , and I would really like to add it to my app. It looks like the code provided is javascript and I know PowerApps doesn't use that. However, I have seen some people find other ways to either use or translate the javascript to work for PowerApps (??).  I'm new to this so I'm not sure if it's possible to add the search bar from this website to my app. The only information they provided is the following:

 

Below are the instructions needed to add the Agrian Label Search to your website. It describes the changes that need to be made to your website's HTML. If you do not have access to make these changes or if you do not know how to make these changes, send the instructions to your webmaster. If you have questions, please call us at (559) 437-5700.

 

1) Include the following where you would like the search box to appear:
<script language="javascript" src="https://www.agrian.com/labelcenter/labelsearchframe.js">
</script>

 

I've seen it MIGHT be possible using a model-driven app instead of canvas, but I've never made a model-driven app so I'm not sure how or if that's true and I don't want to spend time on a new app if there's an easier or other solution. Please let me know! Also, I'm new to this so a more thorough explanation would be appreciated. Thank you!

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    I don't know if you can add javascript to a model driven or not. I don't believe you can in a canvas app, at least not by design. 

     

    Would this not be a viable way to search their database for you? (Place on a button or other clickable control)

    Launch("https://agrian.com/labelcenter/results.cfm?s="&labelSearch.Text, {}, LaunchTarget.New)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard