cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Oskarkuus
Level: Powered On

Save textbox value - url for setting page?

Hey

 

I want to save a textbox value without having to setup a sharepoint list and form.

I am trying to create a Settings screen.

On my startpage of my app i have some text with the ONSELECT: Launch("HTTPS://WWW.GOOGLE.SE")

But now i want the user to be able to change this URL by typing in a new adress to a textbox on the setting screen. That url should be saved for all other users.

 

But how to save the value

Cant see how i should use a sharepoint list for this, just one value?!

1 ACCEPTED SOLUTION

Accepted Solutions
Oskarkuus
Level: Powered On

Re: Save textbox value - url for setting page?

Found a solution.

 

I simply put this on the form item field

 

LookUp(sharepointlistname; ID=1)

 

and on my startapge change the launch code to

Launch(urlStart)

(name of form textbox field = urlStart

 

 

View solution in original post

6 REPLIES 6
Super User
Super User

Re: Save textbox value - url for setting page?

@Oskarkuus 

So, the bottom line is, you need to save it somewhere!

Now, the question is this - are the users of this mobile/app users, or will they be using the browser to access your app?

If they are all going to be using the PowerApp App, then you can take advantage of the SaveData and LoadData functions to store your information locally and then load it when starting.  This, however, does not work in the web browser, so, if you are dealing with that, then you will need to look to another list to store it.

 

I hope that is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Oskarkuus
Level: Powered On

Re: Save textbox value - url for setting page?

My users are using both mobile and browser (computer).

 

So i have created a sharepoint list to store 1 row that i call Settings.

This row then have a column called URL1.

 

Now in my form on the setting screen i want to load the value of that specific row.

If i can tell powerapps to always load the row with ID xxxx then i can also let the user update and submit changes to that form i guess?

 

but how to load the form to a specific ID / row?

Oskarkuus
Level: Powered On

Re: Save textbox value - url for setting page?

Found a solution.

 

I simply put this on the form item field

 

LookUp(sharepointlistname; ID=1)

 

and on my startapge change the launch code to

Launch(urlStart)

(name of form textbox field = urlStart

 

 

View solution in original post

Super User
Super User

Re: Save textbox value - url for setting page?

@Oskarkuus 

So first, yes, another list is what you ended up with.

Next, if you use that formula, then you are always going to get the value of record 1.  I thought you wanted each user to have a unique setting.

If that is the case, then you might want to consider adding a column to the list that is a person column, or at least is a text column for the email address.  Then do your lookup for the record that matches that user email address.

If you need more explanation on that, let me know.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Oskarkuus
Level: Powered On

Re: Save textbox value - url for setting page?

Ah i see, no i dont want each user to have their own URL. So this solution that i have now seems to be exaclty what i needed.

Community Support Team
Community Support Team

Re: Save textbox value - url for setting page?

Hi @Oskarkuus ,

Have you solved your problem?

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,027)