Jump to content
UBot Underground

Ramdon Cell from Table


Recommended Posts

I have a two part question.

 

I pull dates into a table, when I'm in my WP site, I want to pull a random date from that table and insert it into the date field. How do I pull random text vs increment one by one?

 

Second, the date format needs to be like, yyyy-mm-dd HH:MM:SS If I put that into excel and save it as csv it changes it to MM/DD/YY HH:MM:SS PM/AM. How can it ensure the date/time format stays the way it needs to be?

 

Thanks,

 

Richard

Link to post
Share on other sites

I am not very familiar with Excel formatting so maybe someone else knows better, but here is some code to demonstrate choosing a randowm table cell:

 

navigate("http://www.ubotstudio.com/playground/simpleform.aspx", "Wait")

type text(<last name field>, $table cell(&dates, $rand(0, $table total rows(&dates)), 0), "Standard")

 

 

 

John

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...